#NEWLINE# def get_tmpfile( self , content = None ) : #NEWLINE# #INDENT# ( fd , file ) = mkstemp ( ) #NEWLINE# os . close ( fd ) #NEWLINE# self . tmpfiles . append ( file ) #NEWLINE# if ( content is not None ) : #NEWLINE# #INDENT# with open ( file , 'w' ) as f : #NEWLINE# #INDENT# f . write ( content ) #NEWLINE# #UNINDENT# #UNINDENT# return file