#NEWLINE# def open( self , mode ) : #NEWLINE# #INDENT# if self . filename : #NEWLINE# #INDENT# self . file = open ( self . filename , mode ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . file = tempfile . NamedTemporaryFile ( ) #NEWLINE# self . filename = mode . file . name