D5302: py3: use pycompat.xrange instead of xrange

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Nov 27 05:11:01 EST 2018


pulkit updated this revision to Diff 12606.
pulkit retitled this revision from "py3: alias xrange to range" to "py3: use pycompat.xrange instead of xrange".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5302?vs=12596&id=12606

REVISION DETAIL
  https://phab.mercurial-scm.org/D5302

AFFECTED FILES
  tests/test-remotefilelog-histpack.py

CHANGE DETAILS

diff --git a/tests/test-remotefilelog-histpack.py b/tests/test-remotefilelog-histpack.py
--- a/tests/test-remotefilelog-histpack.py
+++ b/tests/test-remotefilelog-histpack.py
@@ -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()



To: pulkit, #hg-reviewers
Cc: durin42, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list