diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 13:41:29 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 13:41:29 -0500 |
| commit | a7ae16215eab4487954d546f583e30869696adfc (patch) | |
| tree | e954274a3f6e6ca59e0f90d7140e1555b7ffb995 /pkg_resources/__init__.py | |
| parent | ddb012669aa26fffd6791283e6405fa34bf9f0e5 (diff) | |
| download | python-setuptools-git-a7ae16215eab4487954d546f583e30869696adfc.tar.gz | |
No need to mutate the set to a list; just use the set.
Diffstat (limited to 'pkg_resources/__init__.py')
| -rw-r--r-- | pkg_resources/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 277da3f9..522247e0 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -342,7 +342,7 @@ class VersionConflict(ResolutionError): class ContextualVersionConflict(VersionConflict): """ - A VersionConflict that accepts a third parameter, the list of the + A VersionConflict that accepts a third parameter, the set of the requirements that required the installed Distribution. """ @@ -796,7 +796,7 @@ class WorkingSet(object): to_activate.append(dist) if dist not in req: # Oops, the "best" so far conflicts with a dependency - dependent_req = list(required_by.get(req, [])) + dependent_req = required_by[req] raise ContextualVersionConflict(dist, req, dependent_req) # push the new requirements onto the stack |
