ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/RandomCodeRequests/gmb.txt
(Generate patch)

Comparing Python/NinoCode/RandomCodeRequests/gmb.txt (file contents):
Revision 8 by ninoborges, Sat May 5 04:21:19 2012 UTC vs.
Revision 316 by nino.borges, Sat Mar 23 00:11:04 2013 UTC

# Line 4 | Line 4 | for line in contents:
4   ...     ending = FixBatesRange_func.EnumerateBates(startBates,endBates)
5   ...     outputFile.write(begno + "," + begno+"_%0*d"%(3,len(ending))+"\n")
6   ...    
7 + >>> outputFile.close()
8 +
9 +
10 + """This was some code for the entity fix"""
11 + outputFile = open(r"C:\Test_dir\gmb\20130313_gmail_entity_fixed.DAT",'w')
12 + >>> for line in contents:
13 + ...     line = line.replace("\n","")
14 + ...     bates,enty = line.split("|")
15 + ...     enty = enty.split(";")
16 + ...     outputFile.write(bates + "|")
17 + ...     for e in enty:
18 + ...             if e[:4] == ' A -':
19 + ...                     outputFile.write(e+";")
20 + ...     outputFile.write("\n")
21 + ...
22   >>> outputFile.close()

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)