Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireprotoserver.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 | 642e31cb55f0 |
children | 3b199593fedd |
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/wireprotoserver.py Sun May 29 15:17:27 2022 +0200 @@ -390,14 +390,14 @@ def getargs(self, args): data = {} keys = args.split() - for n in pycompat.xrange(len(keys)): + for n in range(len(keys)): argline = self._fin.readline()[:-1] arg, l = argline.split() if arg not in keys: raise error.Abort(_(b"unexpected parameter %r") % arg) if arg == b'*': star = {} - for k in pycompat.xrange(int(l)): + for k in range(int(l)): argline = self._fin.readline()[:-1] arg, l = argline.split() val = self._fin.read(int(l))