ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/RandomCodeRequests/gmb.txt
Revision: 316
Committed: Sat Mar 23 00:11:04 2013 UTC (13 years ago) by nino.borges
Content type: text/plain
File size: 705 byte(s)
Log Message:
added HTC,dva2 and updated gmb

File Contents

# User Rev Content
1 ninoborges 8 for line in contents:
2     ... line = line.replace("\n","")
3     ... begno,startBates,endBates = line.split(',')
4     ... ending = FixBatesRange_func.EnumerateBates(startBates,endBates)
5     ... outputFile.write(begno + "," + begno+"_%0*d"%(3,len(ending))+"\n")
6     ...
7 nino.borges 316 >>> 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 ninoborges 8 >>> outputFile.close()