From 933dfd7504e521a27fd8b94d02b79f9ed08f4631 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 27 Mar 2021 14:55:03 +0100 Subject: bpo-40645: use C implementation of HMAC (GH-24920) - [x] fix tests - [ ] add test scenarios for old/new code. Signed-off-by: Christian Heimes --- Lib/hashlib.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/hashlib.py') diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 58c340d56e3..ffa3be049a4 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 -- cgit v1.2.3