#NEWLINE# def authorize_tool_file( self , name , contents ) : #NEWLINE# #INDENT# tool = self . tool #NEWLINE# tool_dir = tool . get_tool_dir ( ) #NEWLINE# tool_dir_file = join ( tool_dir , name ) #NEWLINE# allowed_contents = open ( tool_dir_file ) . read ( ) #NEWLINE# if ( contents != allowed_contents ) : #NEWLINE# #INDENT# self . __unauthorized ( 'Attempt to write tool file with contents differing from Pulsar copy of tool file.' )