server/sources/rql2sql.py
changeset 10663 54b8a1f249fb
parent 10662 10942ed172de
child 10669 155c29e0ed1c
--- a/server/sources/rql2sql.py	Tue Sep 15 16:15:03 2015 +0200
+++ b/server/sources/rql2sql.py	Tue Oct 13 15:09:22 2015 +0200
@@ -366,7 +366,7 @@
         self.done = set()
         self.tables = self.subtables.copy()
         self.actual_tables = [[]]
-        for _, tsql in self.tables.itervalues():
+        for _, tsql in self.tables.values():
             self.actual_tables[-1].append(tsql)
         self.outer_chains = []
         self.outer_tables = {}
@@ -400,7 +400,7 @@
         notdone_outside_vars = set()
         # when iterating other solutions inner to an EXISTS subquery, we should
         # reset variables which have this exists node as scope at each iteration
-        for var in exists.stmt.defined_vars.itervalues():
+        for var in exists.stmt.defined_vars.values():
             if var.scope is exists:
                 thisexistsvars.add(var.name)
             elif var.name not in self.done: