Skip to content

Commit 2ceb790

Browse files
committed
make zlib.Compress immutable
1 parent 443908f commit 2ceb790

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
@@ -2043,6 +2043,7 @@ static PyType_Spec Comptype_spec = {
20432043
.flags = (
20442044
Py_TPFLAGS_DEFAULT
20452045
| Py_TPFLAGS_DISALLOW_INSTANTIATION
2046+
| Py_TPFLAGS_IMMUTABLETYPE
20462047
| Py_TPFLAGS_HAVE_GC
20472048
),
20482049
.slots= Comptype_slots,

0 commit comments

Comments
 (0)