Removed an old and unnecessary wrapper for objects in deps_man

This commit is contained in:
Thomas Nagy 2016-02-09 22:03:20 +01:00
parent f7ed95d60e
commit 6124ee6975
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 3 additions and 3 deletions

View File

@ -428,9 +428,9 @@ class BuildContext(Context.Context):
node = self.path.find_resource(path)
if isinstance(value, list):
self.deps_man[id(node)].extend(value)
self.deps_man[node].extend(value)
else:
self.deps_man[id(node)].append(value)
self.deps_man[node].append(value)
def launch_node(self):
"""Returns the launch directory as a :py:class:`waflib.Node.Node` object"""

View File

@ -663,7 +663,7 @@ class Task(TaskBase):
additional_deps = bld.deps_man
for x in self.inputs + self.outputs:
try:
d = additional_deps[id(x)]
d = additional_deps[x]
except KeyError:
continue