diff mercurial/hgweb/webcommands.py @ 49292:d44e3c45f0e4

py3: replace `pycompat.xrange` by `range`
author Manuel Jacob <me@manueljacob.de>
date Sun, 29 May 2022 15:17:27 +0200
parents 642e31cb55f0
children fda5a4b853ab
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/hgweb/webcommands.py	Sun May 29 15:17:27 2022 +0200
@@ -228,7 +228,7 @@
 
         def revgen():
             cl = web.repo.changelog
-            for i in pycompat.xrange(len(web.repo) - 1, 0, -100):
+            for i in range(len(web.repo) - 1, 0, -100):
                 l = []
                 for j in cl.revs(max(0, i - 99), i):
                     ctx = web.repo[j]