Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9083979 commit e12eb85Copy full SHA for e12eb85
1 file changed
Modules/_io/_iomodule.h
@@ -5,6 +5,7 @@
5
#include "exports.h"
6
7
#include "pycore_moduleobject.h" // _PyModule_GetState()
8
+#include "pycore_typeobject.h" // _PyType_GetModuleState()
9
#include "structmember.h"
10
11
/* Type specs */
@@ -161,7 +162,7 @@ get_io_state(PyObject *module)
161
162
static inline _PyIO_State *
163
get_io_state_by_cls(PyTypeObject *cls)
164
{
- void *state = PyType_GetModuleState(cls);
165
+ void *state = _PyType_GetModuleState(cls);
166
assert(state != NULL);
167
return (_PyIO_State *)state;
168
}
0 commit comments