#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# 'x.__repr__() <==> repr(x)' #NEWLINE# state = 'open' #NEWLINE# if state . closed : #NEWLINE# #INDENT# state = 'closed' #NEWLINE# #UNINDENT# return ( '<%s file %r mode %r>' % ( state , self . name , self . mode ) )