diff mercurial/ancestor.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 493034cc3265
line wrap: on
line diff
--- a/mercurial/ancestor.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/ancestor.py	Sun May 29 15:17:27 2022 +0200
@@ -12,7 +12,6 @@
 from . import (
     dagop,
     policy,
-    pycompat,
 )
 
 parsers = policy.importmod('parsers')
@@ -187,7 +186,7 @@
             # no revs to consider
             return
 
-        for curr in pycompat.xrange(start, min(revs) - 1, -1):
+        for curr in range(start, min(revs) - 1, -1):
             if curr not in bases:
                 continue
             revs.discard(curr)
@@ -228,7 +227,7 @@
         # exit.
 
         missing = []
-        for curr in pycompat.xrange(start, nullrev, -1):
+        for curr in range(start, nullrev, -1):
             if not revsvisit:
                 break