1.1 --- a/deducer.py Sun Mar 26 01:18:06 2017 +0100
1.2 +++ b/deducer.py Sun Mar 26 01:18:46 2017 +0100
1.3 @@ -723,22 +723,6 @@
1.4 for location, referenced_attrs in self.referenced_attrs.items():
1.5 path, name, attrnames, version = location
1.6
1.7 - # Identify module-level paths.
1.8 -
1.9 - if self.importer.modules.has_key(path):
1.10 - module_name = path
1.11 -
1.12 - # Identify the module containing other paths.
1.13 -
1.14 - else:
1.15 - ref = self.importer.identify(path)
1.16 - for objpath in ref.ancestors():
1.17 - if self.importer.modules.has_key(objpath):
1.18 - module_name = objpath
1.19 - break
1.20 - else:
1.21 - raise DeduceError("Cannot find module for path %s." % path)
1.22 -
1.23 # Identify references providing dependencies.
1.24
1.25 for attrtype, objtype, attr in referenced_attrs: