commit | 76c28f7ce27ea48254e152032d25ded3117973cb | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@krypto.org> | Sat Jul 21 21:19:53 2012 -0700 |
committer | Gregory P. Smith <greg@krypto.org> | Sat Jul 21 21:19:53 2012 -0700 |
tree | b789dd9bd4df9d70249e067af39094d02d67472d | |
parent | 00528e8fec37bdf203bdb172ec3363353268d908 [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 9108095..21454c7 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):