#NEWLINE# def dict_from_file( self , file ) : #NEWLINE# #INDENT# if hasattr ( file , 'read' ) : #NEWLINE# #INDENT# self . readfp ( file ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . read ( file ) #NEWLINE# #UNINDENT# return self . as_dict ( )