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

login
register
mail settings
Submitter phabricator
Date Nov. 28, 2018, 12:10 p.m.
Message ID <55081962236757b4ee228a23c0529eb5@localhost.localdomain>
Download mbox | patch
Permalink /patch/36823/
State Not Applicable
Headers show

Comments

phabricator - Nov. 28, 2018, 12:10 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGba706e3082bd: py3: use pycompat.xrange instead of xrange (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

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

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