mercurial/templatefilters.py
changeset 49284 d44e3c45f0e4
parent 49021 51aed118f9dc
child 49494 c96ed4029fda
--- a/mercurial/templatefilters.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/templatefilters.py	Sun May 29 15:17:27 2022 +0200
@@ -140,7 +140,7 @@
             b = b[: len(a)]
         if a == b:
             return a
-        for i in pycompat.xrange(len(a)):
+        for i in range(len(a)):
             if a[i] != b[i]:
                 return a[:i]
         return a
@@ -311,7 +311,7 @@
     endswithnewline = text[-1:] == b'\n'
 
     def indenter():
-        for i in pycompat.xrange(num_lines):
+        for i in range(num_lines):
             l = lines[i]
             if l.strip():
                 yield prefix if i else firstline