diff mercurial/encoding.py @ 49284: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 95acba2c29f6
line wrap: on
line diff
--- 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