mercurial/templatefilters.py
changeset 38783 e7aa113b14f7
parent 38304 fabfbbf4dee2
child 40029 e2697acd9381
--- a/mercurial/templatefilters.py	Wed Aug 01 12:57:15 2018 -0700
+++ b/mercurial/templatefilters.py	Wed Aug 01 13:00:45 2018 -0700
@@ -119,7 +119,7 @@
             b = b[:len(a)]
         if a == b:
             return a
-        for i in xrange(len(a)):
+        for i in pycompat.xrange(len(a)):
             if a[i] != b[i]:
                 return a[:i]
         return a
@@ -266,7 +266,7 @@
     num_lines = len(lines)
     endswithnewline = text[-1:] == '\n'
     def indenter():
-        for i in xrange(num_lines):
+        for i in pycompat.xrange(num_lines):
             l = lines[i]
             if i and l.strip():
                 yield prefix