py3: use pycompat.xrange instead of xrange
authorPulkit Goyal <pulkit@yandex-team.ru>
Mon, 26 Nov 2018 15:36:06 +0300
changeset 40749 ba706e3082bd
parent 40748 df8ed31a8ad8
child 40750 45a0047c0ebc
py3: use pycompat.xrange instead of xrange xrange does not exists on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5302
tests/test-remotefilelog-histpack.py
--- a/tests/test-remotefilelog-histpack.py	Tue Nov 27 16:16:13 2018 +0300
+++ b/tests/test-remotefilelog-histpack.py	Mon Nov 26 15:36:06 2018 +0300
@@ -251,7 +251,7 @@
         This causes it to use a 2^16 fanout table instead."""
         total = basepack.SMALLFANOUTCUTOFF + 1
         revisions = []
-        for i in xrange(total):
+        for i in pycompat.xrange(total):
             filename = b"foo-%d" % i
             node = self.getFakeHash()
             p1 = self.getFakeHash()