--- Python/NinoCode/RandomCodeRequests/gmb.txt 2012/05/05 04:21:19 8 +++ Python/NinoCode/RandomCodeRequests/gmb.txt 2013/03/23 00:11:04 316 @@ -4,4 +4,19 @@ for line in contents: ... ending = FixBatesRange_func.EnumerateBates(startBates,endBates) ... outputFile.write(begno + "," + begno+"_%0*d"%(3,len(ending))+"\n") ... +>>> outputFile.close() + + +"""This was some code for the entity fix""" +outputFile = open(r"C:\Test_dir\gmb\20130313_gmail_entity_fixed.DAT",'w') +>>> for line in contents: +... line = line.replace("\n","") +... bates,enty = line.split("|") +... enty = enty.split(";") +... outputFile.write(bates + "|") +... for e in enty: +... if e[:4] == ' A -': +... outputFile.write(e+";") +... outputFile.write("\n") +... >>> outputFile.close() \ No newline at end of file