mercurial/hgweb/webcommands.py
changeset 38783 e7aa113b14f7
parent 38482 5faaa31a6082
child 39102 08b2ae9fc030
--- a/mercurial/hgweb/webcommands.py	Wed Aug 01 12:57:15 2018 -0700
+++ b/mercurial/hgweb/webcommands.py	Wed Aug 01 13:00:45 2018 -0700
@@ -215,7 +215,7 @@
 
         def revgen():
             cl = web.repo.changelog
-            for i in xrange(len(web.repo) - 1, 0, -100):
+            for i in pycompat.xrange(len(web.repo) - 1, 0, -100):
                 l = []
                 for j in cl.revs(max(0, i - 99), i):
                     ctx = web.repo[j]