- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
def _get_list(self, string):
"""
response to list parser, removes CSV list headers
"""
def f(x):
return x != '' and \
x != 'Created,e-Voucher number,Activation code,Currency,Batch,Payer Account,Payee Account,Activated,Amount' and \
x != 'Time,Type,Batch,Currency,Amount,Fee,Payer Account,Payee Account,Payment ID,Memo'
if not string:
return []
rlist = string.split('\n')
return filter(f, rlist)
Комментарии (1) RSS