From 76c28f7ce27ea48254e152032d25ded3117973cb Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 21 Jul 2012 21:19:53 -0700 Subject: Consistently raise a TypeError when a non str is passed to hashlib.new regardless of which of the two implementations of new is used. --- Lib/hashlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/hashlib.py') diff --git a/Lib/hashlib.py b/Lib/hashlib.py index 91080955dd..21454c7d30 100644 --- a/Lib/hashlib.py +++ b/Lib/hashlib.py @@ -88,7 +88,7 @@ def __get_builtin_constructor(name): 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): -- cgit v1.2.1