1.1 --- a/importer.py Thu Nov 10 23:27:13 2016 +0100
1.2 +++ b/importer.py Thu Nov 10 23:55:49 2016 +0100
1.3 @@ -410,11 +410,14 @@
1.4 # Record the resolved names and identify required modules.
1.5
1.6 else:
1.7 + # Find the providing module of this reference.
1.8 + # Where definitive details of the origin cannot be found,
1.9 + # identify the provider using the deferred reference.
1.10 + # NOTE: This may need to test for static origins.
1.11 +
1.12 + provider = self.get_module_provider(found.unresolved() and ref or found)
1.13 ref.mutate(found)
1.14
1.15 - # Find the providing module of this reference.
1.16 -
1.17 - provider = self.get_module_provider(ref)
1.18 if provider:
1.19
1.20 module.required.add(provider)