Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3008b04

Browse files
committed
Removed warnings for packages (Just implemented support for freezing
them, so the warning is obsolete).
1 parent 43278f0 commit 3008b04

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Tools/macfreeze/macgen_rsrc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def generate(output, module_dict, debug=0, preload=1):
3030
def warnings(module_dict):
3131
problems = 0
3232
for name, module in module_dict.items():
33-
if module.gettype() not in ('builtin', 'module'):
33+
if module.gettype() not in ('builtin', 'module', 'package'):
3434
problems = problems + 1
3535
print 'Warning: %s not included: %s %s'%(name, module.gettype(), module)
3636
return problems

Mac/Tools/macfreeze/macgen_src.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def generate(output, module_dict, debug=0):
103103
def warnings(module_dict):
104104
problems = 0
105105
for name, module in module_dict.items():
106-
if module.gettype() not in ('builtin', 'module', 'dynamic'):
106+
if module.gettype() not in ('builtin', 'module', 'dynamic', 'package'):
107107
problems = problems + 1
108108
print 'Warning: %s not included: %s %s'%(name, module.gettype(), module)
109109
return problems

0 commit comments

Comments
 (0)