Skip to content

Commit eea5942

Browse files
committed
lint
1 parent 1783534 commit eea5942

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/pip/_internal/index/package_finder.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,8 @@ def evaluate_link(self, link: Link) -> Tuple[bool, Optional[str]]:
223223
ignore_requires_python=self._ignore_requires_python,
224224
)
225225
if not supports_python:
226-
# Return None for the reason text to suppress calling
227-
# _log_skipped_link().
228-
return (
229-
False,
230-
'{} requires-python {}'.format(version, link.requires_python),
231-
)
226+
reason = f'{version} requires-python {link.requires_python}'
227+
return (False, reason)
232228

233229
logger.debug("Found link %s, version: %s", link, version)
234230

0 commit comments

Comments
 (0)