mercurial/minirst.py
changeset 38783 e7aa113b14f7
parent 37883 a61583cba509
child 39305 200ad3e85a97
--- a/mercurial/minirst.py	Wed Aug 01 12:57:15 2018 -0700
+++ b/mercurial/minirst.py	Wed Aug 01 13:00:45 2018 -0700
@@ -316,7 +316,7 @@
 
             # column markers are ASCII so we can calculate column
             # position in bytes
-            columns = [x for x in xrange(len(div))
+            columns = [x for x in pycompat.xrange(len(div))
                        if div[x:x + 1] == '=' and (x == 0 or
                                                    div[x - 1:x] == ' ')]
             rows = []
@@ -685,7 +685,7 @@
                     if llen and llen != plen:
                         collapse = False
                     s = []
-                    for j in xrange(3, plen - 1):
+                    for j in pycompat.xrange(3, plen - 1):
                         parent = parents[j]
                         if (j >= llen or
                             lastparents[j] != parent):