Mercurial > hg
changeset 36294: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 | 8591d6afc629 |
children | 19a04ca90413 |
files | tests/test-ui-verbosity.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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()