Commit be05a93a authored by Jason R. Coombs's avatar Jason R. Coombs

Simplify syntax of for loop

parent cdc3b090
......@@ -2719,9 +2719,9 @@ else:
# try it without defaults already on sys.path
# by starting with an empty path
working_set = WorkingSet([])
for dist in working_set.resolve(
parse_requirements(__requires__), Environment()
):
reqs = parse_requirements(__requires__)
dists = working_set.resolve(reqs, Environment())
for dist in dists:
working_set.add(dist)
# add any missing entries from sys.path
......
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