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__:
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:
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):