mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns
'SHA1' instead of 'SHA'.
This commit is contained in:
parent
25f043b152
commit
4fec4314cf
2 changed files with 4 additions and 1 deletions
|
|
@ -57,6 +57,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns
|
||||
'SHA1' instead of 'SHA'.
|
||||
|
||||
- Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.
|
||||
|
||||
- Issue #18559: Fix NULL pointer dereference error in _pickle module
|
||||
|
|
|
|||
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue