2016-12-17 | Paul Boddie | raw files shortlog changelog graph | Broadened the dependency criteria to include initialised classes and functions. | |
importer.py (file) |
1.1 --- a/importer.py Sat Dec 17 14:59:19 2016 +0100 1.2 +++ b/importer.py Sat Dec 17 17:15:57 2016 +0100 1.3 @@ -462,7 +462,7 @@ 1.4 1.5 # Record a module ordering dependency. 1.6 1.7 - if not found.static(): 1.8 + if not found.static() or self.is_dynamic_class(found) or self.is_dynamic_callable(found): 1.9 self.add_module_dependency(module.name, provider) 1.10 1.11 # Restore the original references so that they may be read back in