File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 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[] = {
24402440 {0 , NULL },
24412441};
24422442
2443+ /* Do not set Py_TPFLAGS_HAVE_GC so that tp_traverse and tp_clear are inherited */
24432444PyType_Spec bufferediobase_spec = {
24442445 .name = "_io._BufferedIOBase" ,
24452446 .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[] = {
10501050 {0 , NULL },
10511051};
10521052
1053+ /* Do not set Py_TPFLAGS_HAVE_GC so that tp_traverse and tp_clear are inherited */
10531054PyType_Spec rawiobase_spec = {
10541055 .name = "_io._RawIOBase" ,
10551056 .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[] = {
190190 {0 , NULL },
191191};
192192
193+ /* Do not set Py_TPFLAGS_HAVE_GC so that tp_traverse and tp_clear are inherited */
193194PyType_Spec textiobase_spec = {
194195 .name = "_io._TextIOBase" ,
195196 .flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
You can’t perform that action at this time.
0 commit comments