mercurial/context.py
changeset 49284 d44e3c45f0e4
parent 49012 5b65721a75eb
child 49306 2e726c934fcd
--- 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)