#NEWLINE# def __init__( self , path , mimetype = None , status = None , content_type = None ) : #NEWLINE# #INDENT# if mimetype : #NEWLINE# #INDENT# content_type = mimetype #NEWLINE# #UNINDENT# if ( content_type is None ) : #NEWLINE# #INDENT# content_type = mimetypes . guess_type ( path ) [ 0 ] #NEWLINE# #UNINDENT# enabled = is_enabled ( ) #NEWLINE# if enabled : #NEWLINE# #INDENT# content = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# content = open ( path , 'rb' ) #NEWLINE# #UNINDENT# super ( TransferHttpResponse , self ) . __init__ ( content , status = status , content_type = content_type ) #NEWLINE# if enabled : #NEWLINE# #INDENT# self [ get_header_name ( ) ] = get_header_value ( path )