Mercurial > hg
changeset 29141:ba8999547f81
hghave: switch from iteritems to items
With this, test-hghave.t passes on python 3.
Four features fail because mercurial still is not py3 safe:
absimport
cacheable
hardlink
defaultcacerts
But that will be resolved automatically eventually.
author | timeless <timeless@mozdev.org> |
---|---|
date | Thu, 05 May 2016 09:12:26 +0000 |
parents | 47eab0cb72e3 |
children | c07be448028b |
files | tests/hghave |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/hghave Thu May 05 09:07:01 2016 +0000 +++ b/tests/hghave Thu May 05 09:12:26 2016 +0000 @@ -13,13 +13,13 @@ checks = hghave.checks def list_features(): - for name, feature in sorted(checks.iteritems()): + for name, feature in sorted(checks.items()): desc = feature[1] print(name + ':', desc) def test_features(): failed = 0 - for name, feature in checks.iteritems(): + for name, feature in checks.items(): check, _ = feature try: check()