changeset 40749:ba706e3082bd

py3: use pycompat.xrange instead of xrange xrange does not exists on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5302
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 26 Nov 2018 15:36:06 +0300
parents df8ed31a8ad8
children 45a0047c0ebc
files tests/test-remotefilelog-histpack.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()