diff mercurial/context.py @ 49292:d44e3c45f0e4

py3: replace `pycompat.xrange` by `range`
author Manuel Jacob <me@manueljacob.de>
date Sun, 29 May 2022 15:17:27 +0200
parents 5b65721a75eb
children 2e726c934fcd
line wrap: on
line diff
--- a/mercurial/context.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/context.py	Sun May 29 15:17:27 2022 +0200
@@ -32,7 +32,6 @@
     patch,
     pathutil,
     phases,
-    pycompat,
     repoview,
     scmutil,
     sparse,
@@ -2431,7 +2430,7 @@
         # Test that each new directory to be created to write this path from p2
         # is not a file in p1.
         components = path.split(b'/')
-        for i in pycompat.xrange(len(components)):
+        for i in range(len(components)):
             component = b"/".join(components[0:i])
             if component in self:
                 fail(path, component)