#NEWLINE# def from_filename( self , filename ) : #NEWLINE# #INDENT# 'Return the most appropriate Response class from a file name' #NEWLINE# ( mimetype , encoding ) = self . mimetypes . guess_type ( filename ) #NEWLINE# if ( mimetype and ( not encoding ) ) : #NEWLINE# #INDENT# return self . from_mimetype ( mimetype ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Response