diff options
author | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2023-04-02 11:26:28 +0200 |
---|---|---|
committer | Stéphane Bidoul <stephane.bidoul@gmail.com> | 2023-04-14 08:03:48 +0200 |
commit | a1af13cd86d57190a0cd0bfd71d61f3002b87cca (patch) | |
tree | f6a4cf1856d29d246b62eaeb52587481f92a11b1 | |
parent | 0e2a0dbe4e8ef51fa4e475cbecc9cf0f29d47570 (diff) | |
download | pip-a1af13cd86d57190a0cd0bfd71d61f3002b87cca.tar.gz |
Tweak a condition
-rw-r--r-- | src/pip/_internal/operations/prepare.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/pip/_internal/operations/prepare.py b/src/pip/_internal/operations/prepare.py index 44a90b515..a9ad1558d 100644 --- a/src/pip/_internal/operations/prepare.py +++ b/src/pip/_internal/operations/prepare.py @@ -553,13 +553,10 @@ class RequirementPreparer: hashes = self._get_linked_req_hashes(req) - if ( - hashes - and link.is_wheel - and link.is_file - and req.original_link_is_in_wheel_cache - ): + if hashes and req.original_link_is_in_wheel_cache: assert req.download_info is not None + assert link.is_wheel + assert link.is_file # We need to verify hashes, and we have found the requirement in the cache # of locally built wheels. if ( |