@@ -577,7 +577,6 @@ iomodule_traverse(PyObject *mod, visitproc visit, void *arg) {
577
577
Py_VISIT (state -> PyBytesIOBuffer_Type );
578
578
Py_VISIT (state -> PyBytesIO_Type );
579
579
Py_VISIT (state -> PyFileIO_Type );
580
- Py_VISIT (state -> PyIOBase_Type );
581
580
Py_VISIT (state -> PyStringIO_Type );
582
581
Py_VISIT (state -> PyTextIOBase_Type );
583
582
Py_VISIT (state -> PyTextIOWrapper_Type );
@@ -604,7 +603,6 @@ iomodule_clear(PyObject *mod) {
604
603
Py_CLEAR (state -> PyBytesIOBuffer_Type );
605
604
Py_CLEAR (state -> PyBytesIO_Type );
606
605
Py_CLEAR (state -> PyFileIO_Type );
607
- Py_CLEAR (state -> PyIOBase_Type );
608
606
Py_CLEAR (state -> PyStringIO_Type );
609
607
Py_CLEAR (state -> PyTextIOBase_Type );
610
608
Py_CLEAR (state -> PyTextIOWrapper_Type );
@@ -676,7 +674,6 @@ iomodule_exec(PyObject *m)
676
674
}
677
675
678
676
// Base classes
679
- state -> PyIOBase_Type = (PyTypeObject * )Py_NewRef (& PyIOBase_Type );
680
677
ADD_TYPE (m , state -> PyIncrementalNewlineDecoder_Type , & nldecoder_spec , NULL );
681
678
ADD_TYPE (m , state -> PyBytesIOBuffer_Type , & bytesiobuf_spec , NULL );
682
679
ADD_TYPE (m , state -> PyIOBase_Type , & iobase_spec , NULL );
0 commit comments