D1560: py3: alias xrange to range in tests/seq.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Nov 30 07:58:36 EST 2017
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
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])
To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list