← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~cjwatson/launchpad:py3-compat-format-imports into launchpad:master

 

Colin Watson has proposed merging ~cjwatson/launchpad:py3-compat-format-imports into launchpad:master.

Commit message:
Make format-imports compatible with Python 3

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/381994
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:py3-compat-format-imports into launchpad:master.
diff --git a/utilities/format-imports b/utilities/format-imports
index b408b86..cd49da7 100755
--- a/utilities/format-imports
+++ b/utilities/format-imports
@@ -306,7 +306,7 @@ def format_imports(imports):
     thirdparty_section = {}
     local_section = {}
     # Group modules into sections.
-    for module, statement in imports.iteritems():
+    for module, statement in imports.items():
         module_base = module_base_regex.findall(module)[0]
         comment = statement.comment
         if module_base == '_pythonpath':