common: add a __repr__ implementation to PaymentResponse (#7496)

This commit is contained in:
Benjamin Dauvergne 2015-07-16 14:12:37 +02:00
parent 768545df13
commit 0562850ac3
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ class PaymentResponse(object):
def is_error(self):
return self.result == ERROR
def __repr__(self):
return '<%s %s>' % (self.__class__.__name__, repr(self.__dict__))
class PaymentCommon(object):
PATH = '/tmp'