File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2440,6 +2440,7 @@ static PyType_Slot bufferediobase_slots[] = {
2440
2440
{0 , NULL },
2441
2441
};
2442
2442
2443
+ /* Do not set Py_TPFLAGS_HAVE_GC so that tp_traverse and tp_clear are inherited */
2443
2444
PyType_Spec bufferediobase_spec = {
2444
2445
.name = "_io._BufferedIOBase" ,
2445
2446
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
Original file line number Diff line number Diff line change @@ -1050,6 +1050,7 @@ static PyType_Slot rawiobase_slots[] = {
1050
1050
{0 , NULL },
1051
1051
};
1052
1052
1053
+ /* Do not set Py_TPFLAGS_HAVE_GC so that tp_traverse and tp_clear are inherited */
1053
1054
PyType_Spec rawiobase_spec = {
1054
1055
.name = "_io._RawIOBase" ,
1055
1056
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ static PyType_Slot textiobase_slots[] = {
190
190
{0 , NULL },
191
191
};
192
192
193
+ /* Do not set Py_TPFLAGS_HAVE_GC so that tp_traverse and tp_clear are inherited */
193
194
PyType_Spec textiobase_spec = {
194
195
.name = "_io._TextIOBase" ,
195
196
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
You can’t perform that action at this time.
0 commit comments