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

No need to mutate the set to a list; just use the set.

parent ddb01266
...@@ -342,7 +342,7 @@ class VersionConflict(ResolutionError): ...@@ -342,7 +342,7 @@ class VersionConflict(ResolutionError):
class ContextualVersionConflict(VersionConflict): 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. requirements that required the installed Distribution.
""" """
...@@ -796,7 +796,7 @@ class WorkingSet(object): ...@@ -796,7 +796,7 @@ class WorkingSet(object):
to_activate.append(dist) to_activate.append(dist)
if dist not in req: if dist not in req:
# Oops, the "best" so far conflicts with a dependency # 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) raise ContextualVersionConflict(dist, req, dependent_req)
# push the new requirements onto the stack # push the new requirements onto the stack
......
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