# HG changeset patch # User Julien Cristau # Date 1447322030 -3600 # Node ID 84a0505cb70ba6a96b4c7f7871c063c149669939 # Parent 5669e136860b6a7edb0e6e42f7a33b08e2d9f65a [entities] import range from six.moves diff -r 5669e136860b -r 84a0505cb70b entities/__init__.py --- a/entities/__init__.py Thu Nov 12 10:52:28 2015 +0100 +++ b/entities/__init__.py Thu Nov 12 10:53:50 2015 +0100 @@ -20,6 +20,7 @@ __docformat__ = "restructuredtext en" from six import text_type, string_types +from six.moves import range from logilab.common.decorators import classproperty @@ -30,7 +31,7 @@ def chunks(seq, step): """See http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python)""" return (seq[i:i+step] - for i in xrange(0, len(seq), step)) + for i in range(0, len(seq), step)) class AnyEntity(Entity):