Mercurial > public > mercurial-scm > hg-stable
diff tests/test-ui-verbosity.py @ 36327:2507bf180413
py3: use range instead of xrange on py3 in tests/test-ui-verbosity.py
xrange is not present on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D2332
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Feb 2018 18:22:15 +0530 |
parents | d83ca854fa21 |
children | 76d0a343c305 |
line wrap: on
line diff
--- a/tests/test-ui-verbosity.py Sun Feb 18 18:20:57 2018 +0530 +++ b/tests/test-ui-verbosity.py Sun Feb 18 18:22:15 2018 +0530 @@ -2,9 +2,13 @@ import os from mercurial import ( + pycompat, ui as uimod, ) +if pycompat.ispy3: + xrange = range + hgrc = os.environ['HGRCPATH'] f = open(hgrc) basehgrc = f.read()