running libfuturize.fixes.fix_print_with_import

This commit is contained in:
ilvalle
2016-05-30 21:23:40 +02:00
parent 36ca754c77
commit 48e10a3793
36 changed files with 240 additions and 204 deletions
+9 -8
View File
@@ -9,6 +9,7 @@ Modifed by Dave Stoll dave.stoll@gmail.com
- modifed to support Dow Commerce API
"""
from __future__ import print_function
__all__ = ['DowCommerce']
@@ -227,18 +228,18 @@ def test():
payment.process()
if payment.isApproved():
print 'Payment approved!'
print payment.getFullResponse()
print('Payment approved!')
print(payment.getFullResponse())
elif payment.isDeclined():
print 'Your credit card was declined by your bank'
print('Your credit card was declined by your bank')
elif payment.isError():
raise DowCommerce.DowCommerceError('An uncaught error occurred')
except DowCommerce.DowCommerceError as e:
print "Exception thrown:", e
print 'An error occured'
print 'approved', payment.isApproved()
print 'declined', payment.isDeclined()
print 'error', payment.isError()
print("Exception thrown:", e)
print('An error occured')
print('approved', payment.isApproved())
print('declined', payment.isDeclined())
print('error', payment.isError())
if __name__ == '__main__':
test()