Skip to content

Commit 29a2012

Browse files
committed
remove some obsolete comments
1 parent bd46651 commit 29a2012

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/hashlib.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def __get_openssl_constructor(name):
130130
return __get_builtin_constructor(name)
131131
try:
132132
# MD5, SHA1, and SHA2 are in all supported OpenSSL versions
133-
# SHA3/shake are available in OpenSSL 1.1.1+
133+
# SHA3/shake are available in OpenSSL 1.1.1+; some forks omit
134+
# the latter.
134135
f = getattr(_hashlib, 'openssl_' + name)
135136
# Allow the C module to raise ValueError. The function will be
136137
# defined but the hash not actually available. Don't fall back to
@@ -162,8 +163,6 @@ def __hash_new(name, data=b'', **kwargs):
162163
except ValueError:
163164
# If the _hashlib module (OpenSSL) doesn't support the named
164165
# hash, try using our builtin implementations.
165-
# This allows for SHA224/256 and SHA384/512 support even though
166-
# the OpenSSL library prior to 0.9.8 doesn't provide them.
167166
return __get_builtin_constructor(name)(data)
168167

169168

0 commit comments

Comments
 (0)