Commit 7897e120 authored by Guido van Rossum's avatar Guido van Rossum

Some quick fixes of code that was sorting dict.keys() etc.

parent aa3fb8be
...@@ -487,8 +487,7 @@ class ModuleFinder: ...@@ -487,8 +487,7 @@ class ModuleFinder:
print(" %-25s %s" % ("Name", "File")) print(" %-25s %s" % ("Name", "File"))
print(" %-25s %s" % ("----", "----")) print(" %-25s %s" % ("----", "----"))
# Print modules found # Print modules found
keys = self.modules.keys() keys = sorted(self.modules.keys())
keys.sort()
for key in keys: for key in keys:
m = self.modules[key] m = self.modules[key]
if m.__path__: if m.__path__:
...@@ -503,8 +502,7 @@ class ModuleFinder: ...@@ -503,8 +502,7 @@ class ModuleFinder:
print() print()
print("Missing modules:") print("Missing modules:")
for name in missing: for name in missing:
mods = self.badmodules[name].keys() mods = sorted(self.badmodules[name].keys())
mods.sort()
print("?", name, "imported from", ', '.join(mods)) print("?", name, "imported from", ', '.join(mods))
# Print modules that may be missing, but then again, maybe not... # Print modules that may be missing, but then again, maybe not...
if maybe: if maybe:
...@@ -512,8 +510,7 @@ class ModuleFinder: ...@@ -512,8 +510,7 @@ class ModuleFinder:
print("Submodules thay appear to be missing, but could also be", end=' ') print("Submodules thay appear to be missing, but could also be", end=' ')
print("global names in the parent package:") print("global names in the parent package:")
for name in maybe: for name in maybe:
mods = self.badmodules[name].keys() mods = sorted(self.badmodules[name].keys())
mods.sort()
print("?", name, "imported from", ', '.join(mods)) print("?", name, "imported from", ', '.join(mods))
def any_missing(self): def any_missing(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment