Patchwork D1560: py3: alias xrange to range in tests/seq.py

login
register
mail settings
Submitter phabricator
Date Nov. 30, 2017, 12:58 p.m.
Message ID <94841ca404c0d59d6e150650eb60a5a1@localhost.localdomain>
Download mbox | patch
Permalink /patch/25825/
State Not Applicable
Headers show

Comments

phabricator - Nov. 30, 2017, 12:58 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG08b8b56bd2e8: py3: alias xrange to range in tests/seq.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1560?vs=3984&id=4007

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

AFFECTED FILES
  tests/seq.py

CHANGE DETAILS




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

Patch

diff --git a/tests/seq.py b/tests/seq.py
--- a/tests/seq.py
+++ b/tests/seq.py
@@ -10,6 +10,9 @@ 
 from __future__ import absolute_import, print_function
 import sys
 
+if sys.version_info[0] >= 3:
+    xrange = range
+
 start = 1
 if len(sys.argv) > 2:
     start = int(sys.argv[1])