#NEWLINE# def safe_write( self , data , flags = 'w' ) : #NEWLINE# #INDENT# tmp = self . parent . make_node ( [ ( self . name + '.tmp' ) ] ) #NEWLINE# tmp . write ( data , flags ) #NEWLINE# rename ( tmp . abspath ( ) , self . abspath ( ) )