summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-26 07:38:02 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-25 08:13:27 (GMT)
commitfbf3ebf34d07d5070e8e4a7b9b5e490c52383836 (patch)
tree3471849e35dc17b9dfb7bcfcd89309a22e32ce9e
parent019188f70e9113ebaeaba1d85c0869bae114abda (diff)
downloadeopayment-fbf3ebf34d07d5070e8e4a7b9b5e490c52383836.zip
eopayment-fbf3ebf34d07d5070e8e4a7b9b5e490c52383836.tar.gz
eopayment-fbf3ebf34d07d5070e8e4a7b9b5e490c52383836.tar.bz2
python3: use print() for compatibility
-rw-r--r--eopayment/spplus.py8
-rw-r--r--eopayment/tipi.py6
2 files changed, 7 insertions, 7 deletions
diff --git a/eopayment/spplus.py b/eopayment/spplus.py
index 854a96c..53fd6e5 100644
--- a/eopayment/spplus.py
+++ b/eopayment/spplus.py
@@ -233,8 +233,8 @@ if __name__ == '__main__':
ntkey = '58 6d fc 9c 34 91 9b 86 3f fd 64 63 c9 13 4a 26 ba 29 74 1e c7 e9 80 79'
if len(sys.argv) == 2:
- print sign_url_paiement(ntkey, sys.argv[1])
- print sign_ntkey_query(ntkey, sys.argv[1])
+ print(sign_url_paiement(ntkey, sys.argv[1]))
+ print(sign_ntkey_query(ntkey, sys.argv[1]))
elif len(sys.argv) > 2:
- print sign_url_paiement(sys.argv[1], sys.argv[2])
- print sign_ntkey_query(sys.argv[1], sys.argv[2])
+ print(sign_url_paiement(sys.argv[1], sys.argv[2]))
+ print(sign_ntkey_query(sys.argv[1], sys.argv[2]))
diff --git a/eopayment/tipi.py b/eopayment/tipi.py
index 2839f7c..1b60e3e 100644
--- a/eopayment/tipi.py
+++ b/eopayment/tipi.py
@@ -183,11 +183,11 @@ class Payment(PaymentCommon):
if __name__ == '__main__':
p = Payment({'numcli': '12345'})
- print p.request(amount=Decimal('123.12'),
+ print(p.request(amount=Decimal('123.12'),
exer=9999,
refdet=999900000000999999,
objet='tout a fait',
email='info@entrouvert.com',
urlcl='http://example.com/tipi/test',
- saisie='T')
- print p.response('objet=tout+a+fait&montant=12312&saisie=T&mel=info%40entrouvert.com&numcli=12345&exer=9999&refdet=999900000000999999&resultrans=P')
+ saisie='T'))
+ print(p.response('objet=tout+a+fait&montant=12312&saisie=T&mel=info%40entrouvert.com&numcli=12345&exer=9999&refdet=999900000000999999&resultrans=P'))