# HG changeset patch # User Paul Boddie # Date 1490487526 -3600 # Node ID 1b4aed5f6dba307e2fcc125d2f5c01ace15d12e2 # Parent 419962b13be3e9dd73b9a3962647cea8d8095c9f Removed redundant code. diff -r 419962b13be3 -r 1b4aed5f6dba deducer.py --- a/deducer.py Sun Mar 26 01:18:06 2017 +0100 +++ b/deducer.py Sun Mar 26 01:18:46 2017 +0100 @@ -723,22 +723,6 @@ for location, referenced_attrs in self.referenced_attrs.items(): path, name, attrnames, version = location - # Identify module-level paths. - - if self.importer.modules.has_key(path): - module_name = path - - # Identify the module containing other paths. - - else: - ref = self.importer.identify(path) - for objpath in ref.ancestors(): - if self.importer.modules.has_key(objpath): - module_name = objpath - break - else: - raise DeduceError("Cannot find module for path %s." % path) - # Identify references providing dependencies. for attrtype, objtype, attr in referenced_attrs: