diff options
Diffstat (limited to 'Lib/hashlib.py')
-rw-r--r-- | Lib/hashlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 0f81de094ca..8d119a4225d 100644 --- a/Lib/hashlib.py +++ b/Lib/hashlib.py @@ -154,7 +154,7 @@ def __hash_new(name, data=b'', **kwargs): # salt, personal, tree hashing or SSE. return __get_builtin_constructor(name)(data, **kwargs) try: - return _hashlib.new(name, data) + return _hashlib.new(name, data, **kwargs) except ValueError: # If the _hashlib module (OpenSSL) doesn't support the named # hash, try using our builtin implementations. |