summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-02-09 13:31:50 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-02-09 13:31:50 -0500
commitbe05a93a7e1aabf31a0f90be3851fa941115808a (patch)
tree216dad6a8d0bf1d3183816f15fc3b78c8fc7ca92 /pkg_resources.py
parentcdc3b090d087825fe13d7b04846658d2bc8dae3f (diff)
downloadpython-setuptools-git-be05a93a7e1aabf31a0f90be3851fa941115808a.tar.gz
Simplify syntax of for loop
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 2f3fbd2e..0b987e8f 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -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