mercurial/encoding.py
changeset 49284 d44e3c45f0e4
parent 48946 642e31cb55f0
child 50397 95acba2c29f6
--- a/mercurial/encoding.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/encoding.py	Sun May 29 15:17:27 2022 +0200
@@ -401,7 +401,7 @@
     # type: (bytes, int, int) -> bytes
     """Use colwidth to find a c-column substring of s starting at byte
     index start"""
-    for x in pycompat.xrange(start + c, len(s)):
+    for x in range(start + c, len(s)):
         t = s[start:x]
         if colwidth(t) == c:
             return t