[py3k] Import zip from six.moves
authorRémi Cardona <remi.cardona@free.fr>
Sun, 20 Jul 2014 13:20:02 +0200
changeset 753 72827f7fd743
parent 752 156221f61760
child 754 95fb0ae31439
[py3k] Import zip from six.moves
analyze.py
--- a/analyze.py	Fri Jul 25 22:41:55 2014 +0200
+++ b/analyze.py	Sun Jul 20 13:20:02 2014 +0200
@@ -23,9 +23,9 @@
 __docformat__ = "restructuredtext en"
 
 import os
-from itertools import izip
 
 from six import StringIO
+from six.moves import zip
 
 from rql import TypeResolverException, nodes
 
@@ -205,7 +205,7 @@
         rql_sols = []
         for s in sols:
             r={}
-            for var, val in izip(self.ivariables, s):
+            for var, val in zip(self.ivariables, s):
                 r[var] = self.all_values[val]
             rql_sols.append(r)
         #print "RUNTIME:", time.time()-t0