Mercurial > hg
diff hgext/remotefilelog/shallowutil.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 | 176f1a0d15dc |
children | 53e9422a9b45 |
line wrap: on
line diff
--- a/hgext/remotefilelog/shallowutil.py Sun May 29 12:38:54 2022 +0200 +++ b/hgext/remotefilelog/shallowutil.py Sun May 29 15:17:27 2022 +0200 @@ -454,14 +454,14 @@ def readnodelist(stream): rawlen = readexactly(stream, constants.NODECOUNTSIZE) nodecount = struct.unpack(constants.NODECOUNTSTRUCT, rawlen)[0] - for i in pycompat.xrange(nodecount): + for i in range(nodecount): yield readexactly(stream, constants.NODESIZE) def readpathlist(stream): rawlen = readexactly(stream, constants.PATHCOUNTSIZE) pathcount = struct.unpack(constants.PATHCOUNTSTRUCT, rawlen)[0] - for i in pycompat.xrange(pathcount): + for i in range(pathcount): yield readpath(stream)