web/views/sparql.py
changeset 10609 e2d8e81bfe68
parent 8696 0bb18407c053
child 10663 54b8a1f249fb
--- a/web/views/sparql.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/web/views/sparql.py	Tue Sep 15 16:56:57 2015 +0200
@@ -20,6 +20,8 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+from six.moves import range
+
 from yams import xy
 from rql import TypeResolverException
 
@@ -111,7 +113,7 @@
         rqlst = self.cw_rset.syntax_tree().children[0]
         varnames = [var.name for var in rqlst.selection]
         results = E.results()
-        for rowidx in xrange(len(self.cw_rset)):
+        for rowidx in range(len(self.cw_rset)):
             result = E.result()
             for colidx, varname in enumerate(varnames):
                 result.append(self.cell_binding(rowidx, colidx, varname))