#NEWLINE# def __init__( self , file , name = None ) : #NEWLINE# #INDENT# self . file = file #NEWLINE# if ( self is None ) : #NEWLINE# #INDENT# name = getattr ( file , 'name' , None ) #NEWLINE# #UNINDENT# self . name = name #NEWLINE# if hasattr ( file , 'mode' ) : #NEWLINE# #INDENT# self . mode = file . mode