web/views/idownloadable.py
changeset 10609 e2d8e81bfe68
parent 10006 8391bf718485
child 10666 7f6b5f023884
--- a/web/views/idownloadable.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/web/views/idownloadable.py	Tue Sep 15 16:56:57 2015 +0200
@@ -22,6 +22,8 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+from six.moves import range
+
 from logilab.mtconverter import BINARY_ENCODINGS, TransformError, xml_escape
 from logilab.common.deprecation import class_renamed, deprecated
 
@@ -166,7 +168,7 @@
 
     def call(self, **kwargs):
         rset = self.cw_rset
-        for i in xrange(len(rset)):
+        for i in range(len(rset)):
             self.w(u'<div class="efile">')
             self.wview(self.__regid__, rset, row=i, col=0, **kwargs)
             self.w(u'</div>')