Skip to content

Commit

Permalink
Refactor set(...){...}
Browse files Browse the repository at this point in the history
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
  • Loading branch information
MrMino and uranusjr authored Feb 27, 2021
1 parent a2c5794 commit d1d9145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/resolution/resolvelib/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def _report_single_requirement_conflict(self, req, parent):
req_disp = f"{req} (from {parent.name})"

cands = self._finder.find_all_candidates(req.project_name)
versions = [str(v) for v in sorted(set(c.version for c in cands))]
versions = [str(v) for v in sorted({c.version for c in cands})]

logger.critical(
"Could not find a version that satisfies the requirement %s "
Expand Down

0 comments on commit d1d9145

Please sign in to comment.