From 0562850ac3f1809de7d5b9bda7af1f26bac1429c Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 16 Jul 2015 14:12:37 +0200 Subject: [PATCH] common: add a __repr__ implementation to PaymentResponse (#7496) --- eopayment/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eopayment/common.py b/eopayment/common.py index 7222c28..1aa1ac2 100644 --- a/eopayment/common.py +++ b/eopayment/common.py @@ -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'