#NEWLINE# @ open_file ( 4 , 'wb' ) #NEWLINE# def writer_arg4default( self , x , y , other = 'hello' , path = None , **kwargs ) : #NEWLINE# #INDENT# if ( path is None ) : #NEWLINE# #INDENT# fh = tempfile . NamedTemporaryFile ( 'wb+' , delete = False ) #NEWLINE# close_fh = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# fh = path #NEWLINE# close_fh = False #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . write ( self ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# if close_fh : #NEWLINE# #INDENT# fh . close ( )