diff options
author | Christian Heimes <christian@python.org> | 2021-05-02 07:47:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 07:47:45 (GMT) |
commit | 91554e4c5ca3c762998296522f854a7166ba84f0 (patch) | |
tree | aa6e08eedef59c4a4d5c750ed60e5d463f05a4ad /Modules/_blake2 | |
parent | fd0bc7e7f4f2c7de98a1ebc7ad1ef65b8f8f7ad6 (diff) | |
download | cpython-91554e4c5ca3c762998296522f854a7166ba84f0.zip cpython-91554e4c5ca3c762998296522f854a7166ba84f0.tar.gz cpython-91554e4c5ca3c762998296522f854a7166ba84f0.tar.bz2 |
bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792)
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules/_blake2')
-rw-r--r-- | Modules/_blake2/blake2b_impl.c | 2 | ||||
-rw-r--r-- | Modules/_blake2/blake2s_impl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_blake2/blake2b_impl.c b/Modules/_blake2/blake2b_impl.c index 5d108ed..8b0d60d 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 }; diff --git a/Modules/_blake2/blake2s_impl.c b/Modules/_blake2/blake2s_impl.c index 85c2d4e..7ab3917 100644 --- a/Modules/_blake2/blake2s_impl.c +++ b/Modules/_blake2/blake2s_impl.c @@ -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 }; |