predicates.py
changeset 10609 e2d8e81bfe68
parent 10599 99e9fe1e633f
child 10612 84468b90e9c1
--- a/predicates.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/predicates.py	Tue Sep 15 16:56:57 2015 +0200
@@ -24,6 +24,8 @@
 from warnings import warn
 from operator import eq
 
+from six.moves import range
+
 from logilab.common.deprecation import deprecated
 from logilab.common.registry import Predicate, objectify_predicate, yes
 
@@ -332,7 +334,7 @@
             # on rset containing several entity types, each row may be
             # individually adaptable, while the whole rset won't be if the
             # same adapter can't be used for each type
-            for row in xrange(len(kwargs['rset'])):
+            for row in range(len(kwargs['rset'])):
                 kwargs.setdefault('col', 0)
                 _score = super(adaptable, self).__call__(cls, req, row=row, **kwargs)
                 if not _score: