Kaydet (Commit) 619e1bed authored tarafından Guido van Rossum's avatar Guido van Rossum

Add check for unknown modules

üst 00ff4336
......@@ -129,9 +129,15 @@ def main():
dict = findmodules.findmodules(scriptfile, modules, path)
builtins = []
for mod in dict.keys():
mods = dict.keys()
mods.sort()
for mod in mods:
if dict[mod] == '<builtin>':
builtins.append(mod)
elif dict[mod] == '<unknown>':
sys.stderr.write(
'Warning: module %s not found anywhere\n' %
mod)
outfp = open(frozen_c, 'w')
try:
......
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