mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -409,6 +409,6 @@ static PyType_Slot blake2b_type_slots[] = {
|
|||
PyType_Spec blake2b_type_spec = {
|
||||
.name = "_blake2.blake2b",
|
||||
.basicsize = sizeof(BLAKE2bObject),
|
||||
.flags = Py_TPFLAGS_DEFAULT,
|
||||
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
|
||||
.slots = blake2b_type_slots
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue