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
+4 -3
View File
@@ -1,3 +1,4 @@
from __future__ import print_function
import urllib
import json
from hashlib import sha1
@@ -244,8 +245,8 @@ jQuery(function(){
if __name__ == '__main__':
key = raw_input('user>')
d = Stripe(key).charge(100)
print 'charged', d['paid']
print('charged', d['paid'])
s = Stripe(key).check(d[u'id'])
print 'paid', s['paid'], s['amount'], s['currency']
print('paid', s['paid'], s['amount'], s['currency'])
s = Stripe(key).refund(d[u'id'])
print 'refunded', s['refunded']
print('refunded', s['refunded'])