mercurial/minirst.py
changeset 49284 d44e3c45f0e4
parent 48875 6000f5b25c9b
child 51859 f4733654f144
--- a/mercurial/minirst.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/minirst.py	Sun May 29 15:17:27 2022 +0200
@@ -349,7 +349,7 @@
             # position in bytes
             columns = [
                 x
-                for x in pycompat.xrange(len(div))
+                for x in range(len(div))
                 if div[x : x + 1] == b'=' and (x == 0 or div[x - 1 : x] == b' ')
             ]
             rows = []
@@ -769,7 +769,7 @@
                 if llen and llen != plen:
                     collapse = False
                 s = []
-                for j in pycompat.xrange(3, plen - 1):
+                for j in range(3, plen - 1):
                     parent = parents[j]
                     if j >= llen or lastparents[j] != parent:
                         s.append(len(blocks))