py3: alias xrange to range in tests/seq.py
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 29 Nov 2017 08:46:37 +0530
changeset 35150 08b8b56bd2e8
parent 35149 e6487522ef92
child 35151 b45a9d121b53
py3: alias xrange to range in tests/seq.py Differential Revision: https://phab.mercurial-scm.org/D1560
tests/seq.py
--- a/tests/seq.py	Wed Nov 29 08:40:58 2017 +0530
+++ b/tests/seq.py	Wed Nov 29 08:46:37 2017 +0530
@@ -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])