mercurial/server.py
changeset 49292 d44e3c45f0e4
parent 48966 6000f5b25c9b
--- a/mercurial/server.py	Sun May 29 12:38:54 2022 +0200
+++ b/mercurial/server.py	Sun May 29 15:17:27 2022 +0200
@@ -92,7 +92,7 @@
             runargs.append(b'--daemon-postexec=unlink:%s' % lockpath)
             # Don't pass --cwd to the child process, because we've already
             # changed directory.
-            for i in pycompat.xrange(1, len(runargs)):
+            for i in range(1, len(runargs)):
                 if runargs[i].startswith(b'--cwd='):
                     del runargs[i]
                     break