Patchwork D5302: py3: use pycompat.xrange instead of xrange

login
register
mail settings
Submitter phabricator
Date Nov. 27, 2018, 10:11 a.m.
Message ID <204a8afd14ffbdf79bcda7a58c1b27ce@localhost.localdomain>
Download mbox | patch
Permalink /patch/36806/
State Not Applicable
Headers show

Comments

phabricator - Nov. 27, 2018, 10:11 a.m.
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




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

Patch

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()