#NEWLINE# def gen_clean_copy( self , program_file , line_mapping ) : #NEWLINE# #INDENT# 'Generate and return a clean copy of the file\n        with all references of pyscriber removed\n        ' #NEWLINE# with open ( program_file , 'r' ) as program : #NEWLINE# #INDENT# clean_copy_name = ( program_file [ : ( - 3 ) ] + self . CLEAN_SUFFIX ) #NEWLINE# with open ( clean_copy_name , 'w' ) as clean_copy : #NEWLINE# #INDENT# for ( line_num , line_content ) in enumerate ( program . readlines ( ) ) : #NEWLINE# #INDENT# if ( ( line_num + 1 ) not in line_mapping . keys ( ) ) : #NEWLINE# #INDENT# clean_copy . write ( line_content ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return clean_copy_name