#NEWLINE# def makeTempFile( self , content ) : #NEWLINE# #INDENT# '\n        Make a temporary file containing C{content} and return a path to it.\n        ' #NEWLINE# ( _ , fpath ) = tempfile . mkstemp ( ) #NEWLINE# if ( not hasattr ( content , 'decode' ) ) : #NEWLINE# #INDENT# content = content . encode ( 'ascii' ) #NEWLINE# #UNINDENT# fd = open ( fpath , 'wb' ) #NEWLINE# fd . write ( content ) #NEWLINE# fd . close ( ) #NEWLINE# return fpath