#NEWLINE# def __exit__( self , exc_type = None , exc_value = None , traceback = None ) : #NEWLINE# #INDENT# "Replace the file's contents (if no exception occurred) using :func:`replace_file()`." #NEWLINE# if ( exc_type is None ) : #NEWLINE# #INDENT# logger . debug ( 'Moving temporary file into place: %s' , self . filename ) #NEWLINE# replace_file ( self . temporary_file , self . filename )