Mercurial > hg
diff mercurial/server.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 | 6000f5b25c9b |
children |
line wrap: on
line diff
--- 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