summaryrefslogtreecommitdiff
path: root/Lib/hashlib.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-07-21 21:19:53 -0700
committerGregory P. Smith <greg@krypto.org>2012-07-21 21:19:53 -0700
commit76c28f7ce27ea48254e152032d25ded3117973cb (patch)
treeb789dd9bd4df9d70249e067af39094d02d67472d /Lib/hashlib.py
parent00528e8fec37bdf203bdb172ec3363353268d908 (diff)
downloadcpython-git-76c28f7ce27ea48254e152032d25ded3117973cb.tar.gz
Consistently raise a TypeError when a non str is passed to hashlib.new
regardless of which of the two implementations of new is used.
Diffstat (limited to 'Lib/hashlib.py')
-rw-r--r--Lib/hashlib.py2
1 files changed, 1 insertions, 1 deletions
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):