summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-07 23:49:38 +0200
committerStéphane Bidoul <stephane.bidoul@gmail.com>2023-04-07 23:49:38 +0200
commit540f8fbb6d294032f318d58ebadec162f1ea0228 (patch)
tree140184a951952f784643b2c173c7ceea977cec7e /src
parent48152bb2e147f11a350b9b7c90057b15b6ba70ea (diff)
downloadpip-540f8fbb6d294032f318d58ebadec162f1ea0228.tar.gz
Keep empty hash, as before
Diffstat (limited to 'src')
-rw-r--r--src/pip/_internal/models/link.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pip/_internal/models/link.py b/src/pip/_internal/models/link.py
index 765dbce2c..9dd3160d5 100644
--- a/src/pip/_internal/models/link.py
+++ b/src/pip/_internal/models/link.py
@@ -61,7 +61,7 @@ class LinkHash:
# against Hashes when hash-checking is needed. This is easier to debug than
# proactively discarding an invalid hex digest, as we handle incorrect hashes
# and malformed hashes in the same place.
- r"[#&]({choices})=([^&]+)".format(
+ r"[#&]({choices})=([^&]*)".format(
choices="|".join(re.escape(hash_name) for hash_name in _SUPPORTED_HASHES)
),
)