them, so the warning is obsolete).
def warnings(module_dict):
problems = 0
for name, module in module_dict.items():
- if module.gettype() not in ('builtin', 'module'):
+ if module.gettype() not in ('builtin', 'module', 'package'):
problems = problems + 1
print 'Warning: %s not included: %s %s'%(name, module.gettype(), module)
return problems
def warnings(module_dict):
problems = 0
for name, module in module_dict.items():
- if module.gettype() not in ('builtin', 'module', 'dynamic'):
+ if module.gettype() not in ('builtin', 'module', 'dynamic', 'package'):
problems = problems + 1
print 'Warning: %s not included: %s %s'%(name, module.gettype(), module)
return problems