Author: Thomas Hisch <t.hi...@gmail.com> Branch: py3.6 Changeset: r92880:4b8536756542 Date: 2017-10-30 13:59 +0000 http://bitbucket.org/pypy/pypy/changeset/4b8536756542/
Log: Comment-out unsupported crypto algorithms diff --git a/lib-python/3/hashlib.py b/lib-python/3/hashlib.py --- a/lib-python/3/hashlib.py +++ b/lib-python/3/hashlib.py @@ -56,9 +56,12 @@ # This tuple and __get_builtin_constructor() must be modified if a new # always available algorithm is added. __always_supported = ('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512', - 'blake2b', 'blake2s', - 'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512', - 'shake_128', 'shake_256') + # FIXME the following algorithms were added in + # cpython3.6 but are missing in pypy + # 'blake2b', 'blake2s', + # 'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512', # + # 'shake_128', 'shake_256' +) algorithms_guaranteed = set(__always_supported) @@ -78,7 +81,7 @@ try: if name in ('SHA1', 'sha1'): import _sha1 - cache['SHA1'] = cache['sha1'] = _sha1.sha1 + cache['SHA1'] = cache['sha1'] = _sha1py.sha1 elif name in ('MD5', 'md5'): import _md5 cache['MD5'] = cache['md5'] = _md5.md5 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit