Patchwork D2329: py3: use range instead of xrange in tests/test-issue4074.t

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 1:30 p.m.
Message ID <differential-rev-PHID-DREV-daghu34v4mvd2eubf3ww-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28082/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 1:30 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  xrange in not present on Python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-issue4074.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-issue4074.t b/tests/test-issue4074.t
--- a/tests/test-issue4074.t
+++ b/tests/test-issue4074.t
@@ -4,7 +4,7 @@ 
 
   $ cat > s.py <<EOF
   > import random
-  > for x in xrange(100000):
+  > for x in range(100000):
   >     print
   >     if random.randint(0, 100) >= 50:
   >         x += 1