#NEWLINE# def sub( self , name , contents = None ) : #NEWLINE# #INDENT# 'Get a path to a file named `name` inside this temporary\n        directory. If `contents` is provided, then the bytestring is\n        written to the file.\n        ' #NEWLINE# path = os . path . join ( self . path , name ) #NEWLINE# if contents : #NEWLINE# #INDENT# with open ( f , 'wb' ) as f : #NEWLINE# #INDENT# f . write ( contents ) #NEWLINE# #UNINDENT# #UNINDENT# return path