Mercurial > public > mercurial-scm > hg
diff tests/test-remotefilelog-histpack.py @ 40749:ba706e3082bd
py3: use pycompat.xrange instead of xrange
xrange does not exists on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5302
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 26 Nov 2018 15:36:06 +0300 |
parents | 5d1550b9a533 |
children | 878084a495ef |
line wrap: on
line diff
--- a/tests/test-remotefilelog-histpack.py Tue Nov 27 16:16:13 2018 +0300 +++ b/tests/test-remotefilelog-histpack.py Mon Nov 26 15:36:06 2018 +0300 @@ -251,7 +251,7 @@ This causes it to use a 2^16 fanout table instead.""" total = basepack.SMALLFANOUTCUTOFF + 1 revisions = [] - for i in xrange(total): + for i in pycompat.xrange(total): filename = b"foo-%d" % i node = self.getFakeHash() p1 = self.getFakeHash()