Mercurial > public > mercurial-scm > hg-stable
diff tests/seq.py @ 49293:56f98406831b
py3: remove xrange() compatibility code
Some code used its own xrange() compatibility code instead of
pycompat.xrange().
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:32:43 +0200 |
parents | 6000f5b25c9b |
children | 2924676d4728 |
line wrap: on
line diff
--- a/tests/seq.py Sun May 29 15:17:27 2022 +0200 +++ b/tests/seq.py Sun May 29 15:32:43 2022 +0200 @@ -19,9 +19,6 @@ except ImportError: pass -if sys.version_info[0] >= 3: - xrange = range - start = 1 if len(sys.argv) > 2: start = int(sys.argv[1]) @@ -32,5 +29,5 @@ stop = int(sys.argv[-1]) + 1 -for i in xrange(start, stop, step): +for i in range(start, stop, step): print(i)