Patchwork D6920: contrib: use pycompat.xrange in bdiff-torture.py

login
register
mail settings
Submitter phabricator
Date Sept. 30, 2019, 12:49 p.m.
Message ID <5c2766a96da748cea59f5cc7bda98819@localhost.localdomain>
Download mbox | patch
Permalink /patch/41852/
State Not Applicable
Headers show

Comments

phabricator - Sept. 30, 2019, 12:49 p.m.
Closed by commit rHGe05c141511dd: contrib: use pycompat.xrange in bdiff-torture.py (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6920?vs=16693&id=16702

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6920/new/

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

AFFECTED FILES
  contrib/bdiff-torture.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/contrib/bdiff-torture.py b/contrib/bdiff-torture.py
--- a/contrib/bdiff-torture.py
+++ b/contrib/bdiff-torture.py
@@ -6,6 +6,7 @@ 
 
 from mercurial import (
     mdiff,
+    pycompat,
 )
 
 def reducetest(a, b):
@@ -63,7 +64,7 @@ 
 def rndtest(size, noise):
     a = []
     src = "                aaaaaaaabbbbccd"
-    for x in xrange(size):
+    for x in pycompat.xrange(size):
         a.append(src[random.randint(0, len(src) - 1)])
 
     while True: