--- a/hgext/remotefilelog/historypack.py Sun May 29 12:38:54 2022 +0200
+++ b/hgext/remotefilelog/historypack.py Sun May 29 15:17:27 2022 +0200
@@ -5,7 +5,6 @@
sha1nodeconstants,
)
from mercurial import (
- pycompat,
util,
)
from mercurial.utils import hashutil
@@ -207,7 +206,7 @@
start = fanout[fanoutkey] + params.indexstart
indexend = self._indexend
- for i in pycompat.xrange(fanoutkey + 1, params.fanoutcount):
+ for i in range(fanoutkey + 1, params.fanoutcount):
end = fanout[i] + params.indexstart
if end != start:
break
@@ -323,7 +322,7 @@
)[0]
offset += ENTRYCOUNTSIZE
- for i in pycompat.xrange(revcount):
+ for i in range(revcount):
entry = struct.unpack(
PACKFORMAT, data[offset : offset + PACKENTRYLENGTH]
)