From patchwork Wed May 11 12:54:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2,of,3,v2] hghave: switch from iteritems to items From: timeless X-Patchwork-Id: 15017 Message-Id: <12ab239a9766765ae79d.1462971240@gcc2-power8.osuosl.org> To: mercurial-devel@mercurial-scm.org Date: Wed, 11 May 2016 12:54:00 +0000 # HG changeset patch # User timeless # Date 1462439546 0 # Thu May 05 09:12:26 2016 +0000 # Node ID 12ab239a9766765ae79d97eea3a743e2344d1974 # Parent 44c1fb8881423e9f11593bd6687cc687f0d58bbb # Available At bb://timeless/mercurial-crew # hg pull bb://timeless/mercurial-crew -r 12ab239a9766 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. diff -r 44c1fb888142 -r 12ab239a9766 tests/hghave --- 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()