D1560: py3: alias xrange to range in tests/seq.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Nov 29 23:10:21 UTC 2017
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list