def parse_payment_feedback(f):
lines = csv.reader(StringIO(f.read().decode('cp1250')))
for line in lines:
+ if not line: continue
print(line)
assert line[0] in ('1', '2')
if line[0] == '1':
# The AU file.
lines = csv.reader(StringIO(f.read().decode('cp1250')))
for line in lines:
+ if not line: continue
payment_id = line[0]
status = int(line[8])
comment = line[9]