commit | 4fec4314cf24d78a498c85e4dc039df5ef7fcc54 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Tue Jul 30 15:32:57 2013 +0200 |
committer | Christian Heimes <christian@cheimes.de> | Tue Jul 30 15:32:57 2013 +0200 |
tree | d78523558165247a8bcc35e6858a9b2dbd91f18f | |
parent | 25f043b152e083d245fa1a9e8f213aa566940f4d [diff] [blame] |
Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns 'SHA1' instead of 'SHA'.
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 @@ static PyObject * SHA1_get_name(PyObject *self, void *closure) { - return PyUnicode_FromStringAndSize("SHA1", 3); + return PyUnicode_FromStringAndSize("SHA1", 4); } static PyObject *