diff options
author | Guido van Rossum <guido@python.org> | 2007-06-12 00:25:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-12 00:25:08 (GMT) |
commit | d59cde817dcce66d662a042f2187985e3aa28b7a (patch) | |
tree | baaaff41d7eeed1846d16db77d4f7d5af003c8a3 /Lib/modulefinder.py | |
parent | 1a0270f64a75f23f7edd80e7864bdb01c9c59793 (diff) | |
download | cpython-d59cde817dcce66d662a042f2187985e3aa28b7a.zip cpython-d59cde817dcce66d662a042f2187985e3aa28b7a.tar.gz cpython-d59cde817dcce66d662a042f2187985e3aa28b7a.tar.bz2 |
Some quick fixes of code that was sorting dict.keys() etc.
Diffstat (limited to 'Lib/modulefinder.py')
-rw-r--r-- | Lib/modulefinder.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py index 160e82f..d5328bc 100644 --- a/Lib/modulefinder.py +++ b/Lib/modulefinder.py @@ -487,8 +487,7 @@ class ModuleFinder: print(" %-25s %s" % ("Name", "File")) print(" %-25s %s" % ("----", "----")) # Print modules found - keys = self.modules.keys() - keys.sort() + keys = sorted(self.modules.keys()) for key in keys: m = self.modules[key] if m.__path__: @@ -503,8 +502,7 @@ class ModuleFinder: print() print("Missing modules:") for name in missing: - mods = self.badmodules[name].keys() - mods.sort() + mods = sorted(self.badmodules[name].keys()) print("?", name, "imported from", ', '.join(mods)) # Print modules that may be missing, but then again, maybe not... if maybe: @@ -512,8 +510,7 @@ class ModuleFinder: print("Submodules thay appear to be missing, but could also be", end=' ') print("global names in the parent package:") for name in maybe: - mods = self.badmodules[name].keys() - mods.sort() + mods = sorted(self.badmodules[name].keys()) print("?", name, "imported from", ', '.join(mods)) def any_missing(self): |