#NEWLINE# def __exit__( self , type , value , traceback ) : #NEWLINE# #INDENT# self . flush ( ) #NEWLINE# if ( self . _close_on_exit and ( self . _get_state ( ) == 'open' ) ) : #NEWLINE# #INDENT# self . close ( )