Mercurial > public > mercurial-scm > hg
comparison tests/test-fastannotate-revmap.py @ 39407:aa95fd0257df
py3: alias xrange to range in tests/test-fastannotate-revmap.py
xrange is not available on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D4450
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 03 Sep 2018 13:53:30 +0300 |
parents | 659f010ffa7e |
children | 5fd63bca43a4 |
comparison
equal
deleted
inserted
replaced
39406:b3572f733dbd | 39407:aa95fd0257df |
---|---|
1 from __future__ import absolute_import, print_function | 1 from __future__ import absolute_import, print_function |
2 | 2 |
3 import os | 3 import os |
4 import tempfile | 4 import tempfile |
5 | 5 |
6 from mercurial import util | 6 from mercurial import ( |
7 pycompat, | |
8 util, | |
9 ) | |
10 | |
7 from hgext.fastannotate import error, revmap | 11 from hgext.fastannotate import error, revmap |
12 | |
13 if pycompat.ispy3: | |
14 xrange = range | |
8 | 15 |
9 def genhsh(i): | 16 def genhsh(i): |
10 return chr(i) + b'\0' * 19 | 17 return chr(i) + b'\0' * 19 |
11 | 18 |
12 def gettemppath(): | 19 def gettemppath(): |