| 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() |