diff options
author | Christian Heimes <christian@cheimes.de> | 2013-07-30 13:32:57 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-07-30 13:32:57 (GMT) |
commit | 4fec4314cf24d78a498c85e4dc039df5ef7fcc54 (patch) | |
tree | d78523558165247a8bcc35e6858a9b2dbd91f18f /Modules | |
parent | 25f043b152e083d245fa1a9e8f213aa566940f4d (diff) | |
download | cpython-4fec4314cf24d78a498c85e4dc039df5ef7fcc54.zip cpython-4fec4314cf24d78a498c85e4dc039df5ef7fcc54.tar.gz cpython-4fec4314cf24d78a498c85e4dc039df5ef7fcc54.tar.bz2 |
Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns
'SHA1' instead of 'SHA'.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/sha1module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c index f824bb3..d0f318d 100644 --- a/Modules/sha1module.c +++ b/Modules/sha1module.c @@ -415,7 +415,7 @@ SHA1_get_block_size(PyObject *self, void *closure) static PyObject * SHA1_get_name(PyObject *self, void *closure) { - return PyUnicode_FromStringAndSize("SHA1", 3); + return PyUnicode_FromStringAndSize("SHA1", 4); } static PyObject * |