[pypy-commit] pypy py3.7: use the Python implementation of hmac.digest for now

cfbolz pypy.commits at gmail.com
Wed Feb 5 05:23:34 EST 2020


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.7
Changeset: r98663:e1662647d2eb
Date: 2020-02-04 13:31 +0100
http://bitbucket.org/pypy/pypy/changeset/e1662647d2eb/

Log:	use the Python implementation of hmac.digest for now

diff --git a/lib-python/3/hmac.py b/lib-python/3/hmac.py
--- a/lib-python/3/hmac.py
+++ b/lib-python/3/hmac.py
@@ -164,7 +164,8 @@
 
     Note: key and msg must be a bytes or bytearray objects.
     """
-    if (_hashopenssl is not None and
+    if (False and # PyPy does not implement this shortcut yet
+            _hashopenssl is not None and
             isinstance(digest, str) and digest in _openssl_md_meths):
         return _hashopenssl.hmac_digest(key, msg, digest)
 


More information about the pypy-commit mailing list