Explorar el Código

Merge branch 'master' into patch-1

cclauss hace 7 años
padre
commit
1466640fb5
Ninguna cuenta está vinculada al correo electrónico del colaborador
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  1. 5
    3
      utils/fetch_currencies.py

+ 5
- 3
utils/fetch_currencies.py Ver fichero

@@ -1,4 +1,6 @@
1 1
 # -*- coding: utf-8 -*-
2
+from __future__ import print_function
3
+
2 4
 import json
3 5
 import re
4 6
 import unicodedata
@@ -38,13 +40,13 @@ def add_currency_name(name, iso4217):
38 40
     db_names = db['names']
39 41
 
40 42
     if not isinstance(iso4217, basestring):
41
-        print "problem", name, iso4217
43
+        print("problem", name, iso4217)
42 44
         return
43 45
 
44 46
     name = normalize_name(name)
45 47
 
46 48
     if name == '':
47
-        print "name empty", iso4217
49
+        print("name empty", iso4217)
48 50
         return
49 51
 
50 52
     iso4217_set = db_names.get(name, None)
@@ -127,7 +129,7 @@ def wdq_query(query):
127 129
     qlist = map(add_q, jsonresponse.get('items', {}))
128 130
     error = jsonresponse.get('status', {}).get('error', None)
129 131
     if error is not None and error != 'OK':
130
-        print "error for query '" + query + "' :" + error
132
+        print("error for query '" + query + "' :" + error)
131 133
 
132 134
     fetch_data_batch(qlist)
133 135