Mercurial > hg-stable
changeset 36319:daa5f47558cf
py3: use range instead of xrange on py3 in tests/test-filecache.py
xrange is not present on py3.
Differential Revision: https://phab.mercurial-scm.org/D2324
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 18 Feb 2018 17:42:33 +0530 |
parents | 3ec9afb951a0 |
children | 065445b44724 |
files | tests/test-filecache.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-filecache.py Sun Feb 18 17:41:56 2018 +0530 +++ b/tests/test-filecache.py Sun Feb 18 17:42:33 2018 +0530 @@ -11,11 +11,15 @@ extensions, hg, localrepo, + pycompat, ui as uimod, util, vfs as vfsmod, ) +if pycompat.ispy3: + xrange = range + class fakerepo(object): def __init__(self): self._filecache = {}