Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25f043b commit 4fec431Copy full SHA for 4fec431
2 files changed
Misc/NEWS
@@ -57,6 +57,9 @@ Core and Builtins
57
Library
58
-------
59
60
+- Issue #18599: Fix name attribute of _sha1.sha1() object. It now returns
61
+ 'SHA1' instead of 'SHA'.
62
+
63
- Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.
64
65
- Issue #18559: Fix NULL pointer dereference error in _pickle module
Modules/sha1module.c
@@ -415,7 +415,7 @@ SHA1_get_block_size(PyObject *self, void *closure)
415
static PyObject *
416
SHA1_get_name(PyObject *self, void *closure)
417
{
418
- return PyUnicode_FromStringAndSize("SHA1", 3);
+ return PyUnicode_FromStringAndSize("SHA1", 4);
419
}
420
421
0 commit comments