Mercurial > hg-stable
diff tests/test-ui-verbosity.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 |
line wrap: on
line diff
--- a/tests/test-ui-verbosity.py Sun May 29 15:17:27 2022 +0200 +++ b/tests/test-ui-verbosity.py Sun May 29 15:32:43 2022 +0200 @@ -4,9 +4,6 @@ ui as uimod, ) -if pycompat.ispy3: - xrange = range - hgrc = os.environ['HGRCPATH'] f = open(hgrc) basehgrc = f.read() @@ -15,7 +12,7 @@ print(' hgrc settings command line options final result ') print(' quiet verbo debug quiet verbo debug quiet verbo debug') -for i in xrange(64): +for i in range(64): hgrc_quiet = bool(i & 1 << 0) hgrc_verbose = bool(i & 1 << 1) hgrc_debug = bool(i & 1 << 2)