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 20c11f2 commit f80db6cCopy full SHA for f80db6c
Modules/_io/_iomodule.c
@@ -10,6 +10,7 @@
10
#define PY_SSIZE_T_CLEAN
11
#include "Python.h"
12
#include "_iomodule.h"
13
+#include "pycore_moduleobject.h" // _PyModule_GetState()
14
#include "pycore_pystate.h" // _PyInterpreterState_GET()
15
16
#ifdef HAVE_SYS_TYPES_H
@@ -560,7 +561,7 @@ PyNumber_AsOff_t(PyObject *item, PyObject *err)
560
561
static inline _PyIO_State*
562
get_io_state(PyObject *module)
563
{
- void *state = PyModule_GetState(module);
564
+ void *state = _PyModule_GetState(module);
565
assert(state != NULL);
566
return (_PyIO_State *)state;
567
}
0 commit comments