mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
fd0bc7e7f4
commit
91554e4c5c
13 changed files with 49 additions and 18 deletions
|
@ -408,6 +408,6 @@ static PyType_Slot blake2s_type_slots[] = {
|
|||
PyType_Spec blake2s_type_spec = {
|
||||
.name = "_blake2.blake2s",
|
||||
.basicsize = sizeof(BLAKE2sObject),
|
||||
.flags = Py_TPFLAGS_DEFAULT,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
|
||||
.slots = blake2s_type_slots
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue