diff mercurial/repair.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 8011017629be 7a017cd07a1e
line wrap: on
line diff
--- a/mercurial/repair.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/repair.py	Sun May 29 15:17:27 2022 +0200
@@ -24,7 +24,6 @@
     obsutil,
     pathutil,
     phases,
-    pycompat,
     requirements,
     scmutil,
     util,
@@ -91,7 +90,7 @@
     """find out the filelogs affected by the strip"""
     files = set()
 
-    for x in pycompat.xrange(striprev, len(repo)):
+    for x in range(striprev, len(repo)):
         files.update(repo[x].files())
 
     return sorted(files)