aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_io/textio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_io/textio.c')
-rw-r--r--Modules/_io/textio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index a5cf9fc397f..24d846e6634 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -14,7 +14,7 @@
#include "pycore_fileutils.h" // _Py_GetLocaleEncoding()
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
#include "pycore_pystate.h" // _PyInterpreterState_GET()
-#include "structmember.h" // PyMemberDef
+
#include "_iomodule.h"
/*[clinic input]
@@ -3230,13 +3230,13 @@ static PyMethodDef textiowrapper_methods[] = {
};
static PyMemberDef textiowrapper_members[] = {
- {"encoding", T_OBJECT, offsetof(textio, encoding), READONLY},
- {"buffer", T_OBJECT, offsetof(textio, buffer), READONLY},
- {"line_buffering", T_BOOL, offsetof(textio, line_buffering), READONLY},
- {"write_through", T_BOOL, offsetof(textio, write_through), READONLY},
- {"_finalizing", T_BOOL, offsetof(textio, finalizing), 0},
- {"__weaklistoffset__", T_PYSSIZET, offsetof(textio, weakreflist), READONLY},
- {"__dictoffset__", T_PYSSIZET, offsetof(textio, dict), READONLY},
+ {"encoding", _Py_T_OBJECT, offsetof(textio, encoding), Py_READONLY},
+ {"buffer", _Py_T_OBJECT, offsetof(textio, buffer), Py_READONLY},
+ {"line_buffering", Py_T_BOOL, offsetof(textio, line_buffering), Py_READONLY},
+ {"write_through", Py_T_BOOL, offsetof(textio, write_through), Py_READONLY},
+ {"_finalizing", Py_T_BOOL, offsetof(textio, finalizing), 0},
+ {"__weaklistoffset__", Py_T_PYSSIZET, offsetof(textio, weakreflist), Py_READONLY},
+ {"__dictoffset__", Py_T_PYSSIZET, offsetof(textio, dict), Py_READONLY},
{NULL}
};