commit | b9e9e0d5a8be470ade2bb497019a5cf737138182 | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@krypto.org> | Sat Jul 21 21:22:16 2012 -0700 |
committer | Gregory P. Smith <greg@krypto.org> | Sat Jul 21 21:22:16 2012 -0700 |
tree | a37756ba5b48029a489e01cae6e44b8edc0287c5 | |
parent | e4220a5ec69874af624af598532b04db33cc00e7 [diff] [blame] |
Consistently raise a TypeError when a non str is passed to hashlib.new regardless of which of the two implementations of new is used.
diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 2732d18..d20e1f9 100644 --- a/Lib/hashlib.py +++ b/Lib/hashlib.py
@@ -88,7 +88,7 @@ except ImportError: pass # no extension module, this hash is unsupported. - raise ValueError('unsupported hash type %s' % name) + raise ValueError('unsupported hash type ' + name) def __get_openssl_constructor(name):