changeset 35171:08b8b56bd2e8

py3: alias xrange to range in tests/seq.py Differential Revision: https://phab.mercurial-scm.org/D1560
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 29 Nov 2017 08:46:37 +0530
parents e6487522ef92
children b45a9d121b53
files tests/seq.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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])