From 91554e4c5ca3c762998296522f854a7166ba84f0 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 2 May 2021 09:47:45 +0200 Subject: bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792) Signed-off-by: Christian Heimes --- Modules/_blake2/blake2b_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_blake2/blake2b_impl.c') diff --git a/Modules/_blake2/blake2b_impl.c b/Modules/_blake2/blake2b_impl.c index 5d108ed008..8b0d60d02a 100644 --- a/Modules/_blake2/blake2b_impl.c +++ b/Modules/_blake2/blake2b_impl.c @@ -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 }; -- cgit v1.2.1