# HG changeset patch # User Pulkit Goyal # Date 1543235766 -10800 # Node ID ba706e3082bd6164b5c4c3b29b518fa33c7c9944 # Parent df8ed31a8ad8ae116e31550d9128055ece22e258 py3: use pycompat.xrange instead of xrange xrange does not exists on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5302 diff -r df8ed31a8ad8 -r ba706e3082bd 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()