summaryrefslogtreecommitdiffstats
path: root/Lib/hashlib.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-03-27 13:55:03 (GMT)
committerGitHub <noreply@github.com>2021-03-27 13:55:03 (GMT)
commit933dfd7504e521a27fd8b94d02b79f9ed08f4631 (patch)
treedaf6dda084ba6c854b579350392dfa31c51193db /Lib/hashlib.py
parent5d6e8c1c1a5f667cdce99cb3c563ac922198678d (diff)
downloadcpython-933dfd7504e521a27fd8b94d02b79f9ed08f4631.zip
cpython-933dfd7504e521a27fd8b94d02b79f9ed08f4631.tar.gz
cpython-933dfd7504e521a27fd8b94d02b79f9ed08f4631.tar.bz2
bpo-40645: use C implementation of HMAC (GH-24920)
- [x] fix tests - [ ] add test scenarios for old/new code. Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/hashlib.py')
-rw-r--r--Lib/hashlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/hashlib.py b/Lib/hashlib.py
index 58c340d..ffa3be0 100644
--- a/Lib/hashlib.py
+++ b/Lib/hashlib.py
@@ -173,6 +173,7 @@ try:
algorithms_available = algorithms_available.union(
_hashlib.openssl_md_meth_names)
except ImportError:
+ _hashlib = None
new = __py_new
__get_hash = __get_builtin_constructor