Submitter | phabricator |
---|---|
Date | Sept. 29, 2019, 7:25 p.m. |
Message ID | <differential-rev-PHID-DREV-tmpbe2ire7ndku2ckqet-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/41844/ |
State | Superseded |
Headers | show |
Comments
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: