--- a/mercurial/server.py Thu Jun 16 15:15:03 2022 +0200
+++ b/mercurial/server.py Thu Jun 16 15:28:54 2022 +0200
@@ -5,7 +5,6 @@
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
-from __future__ import absolute_import
import os
@@ -93,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