# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-11-29 03:16:37 # Node ID 08b8b56bd2e8a03beea1b024bbb48d30c3346ffc # Parent e6487522ef924b2c153151a1f6557d8ec9355742 py3: alias xrange to range in tests/seq.py Differential Revision: https://phab.mercurial-scm.org/D1560 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])