- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMPed.py
More file actions
Latest commit
39 lines (28 loc) · 642 Bytes
/
Copy pathMPed.py
File metadata and controls
39 lines (28 loc) · 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# py2
importsys
importcsv
importCSVConverter
fromNumUpdateimportDoasupd
'''
in cell 3(py) is zu haende
in cell 6(py) is land
in cell 10(py) is tel
'''
# TODO learn writer ?
#filename = sys.argv[1]
filename='DPD.csv'
f=open(filename, 'rb')
cr=csv.reader(f, delimiter=';', quotechar=None)
csv=CSVConverter.CSV(filename)
defcurLine(ln_number):
returncsv.csv[ln_number]
defzuHaende(ln):
ifcurLine(ln)[3] !='':
returnTrue
else:
returnFalse
deffirma(ln):
ifcurLine(ln)[1] !=''andcurLine(ln)[2] ==''andcurLine(ln)[3] =='':
returnFalse
else:
returnTrue