Змея / Говнокод #23626 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 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)

https://perfectmoney.is/acct/samples/python/class.txt
Класс для работы с платёжным API

Запостил: хуита хуита, (Updated )

Комментарии (1) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8