hgext/remotefilelog/shallowutil.py
changeset 49284 d44e3c45f0e4
parent 48932 176f1a0d15dc
child 49305 53e9422a9b45
--- 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)