# HG changeset patch # User timeless # Date 1459325737 0 # Node ID 1fa6fdb7227586c01fcf39e42044f246690dbb3b # Parent a274c4f9087ac3716f8c2a6940eb5507ae027fe9 py3: handle iter/iterkeys+iteritems python3 divergence in import-checker diff -r a274c4f9087a -r 1fa6fdb72275 contrib/import-checker.py --- a/contrib/import-checker.py Wed Mar 30 04:55:16 2016 +0000 +++ b/contrib/import-checker.py Wed Mar 30 08:15:37 2016 +0000 @@ -554,7 +554,7 @@ top.foo -> top.qux -> top.foo """ cycles = set() - for mod in sorted(imports.iterkeys()): + for mod in sorted(imports.keys()): try: checkmod(mod, imports) except CircularImport as e: @@ -578,7 +578,7 @@ for source_path in argv[1:]: modname = dotted_name_of_path(source_path, trimpure=True) localmods[modname] = source_path - for modname, source_path in sorted(localmods.iteritems()): + for modname, source_path in sorted(localmods.items()): f = open(source_path) src = f.read() used_imports[modname] = sorted(