#NEWLINE# def materialize( self , scratch_dir ) : #NEWLINE# #INDENT# ( fd , path ) = tempfile . mkstemp ( dir = scratch_dir ) #NEWLINE# try : #NEWLINE# #INDENT# os . write ( fd , self . _contents ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . close ( fd ) #NEWLINE# #UNINDENT# return path