Skip to content

Commit 2b0f8ef

Browse files
committed
make zlib.Decompress immutable
1 parent 2ceb790 commit 2b0f8ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/zlibmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,6 +2063,7 @@ static PyType_Spec Decomptype_spec = {
20632063
.flags = (
20642064
Py_TPFLAGS_DEFAULT
20652065
| Py_TPFLAGS_DISALLOW_INSTANTIATION
2066+
| Py_TPFLAGS_IMMUTABLETYPE
20662067
| Py_TPFLAGS_HAVE_GC
20672068
),
20682069
.slots = Decomptype_slots,

0 commit comments

Comments
 (0)