Commit 08632107 authored by Stefan Behnel's avatar Stefan Behnel

Minor code simplification.

parent e7a191e0
...@@ -102,10 +102,7 @@ def sorted_utility_codes_and_deps(utilcodes): ...@@ -102,10 +102,7 @@ def sorted_utility_codes_and_deps(utilcodes):
def normalize_deps(utilcodes): def normalize_deps(utilcodes):
deps = {} deps = {utilcode:utilcode for utilcode in utilcodes}
for utilcode in utilcodes:
deps[utilcode] = utilcode
for utilcode in utilcodes: for utilcode in utilcodes:
utilcode.requires = [deps.setdefault(dep, dep) for dep in utilcode.requires or ()] utilcode.requires = [deps.setdefault(dep, dep) for dep in utilcode.requires or ()]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment