summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-02-23 18:35:52 (GMT)
committerGitHub <noreply@github.com>2019-02-23 18:35:52 (GMT)
commitbe3b295838547bba267eb08434b418ef0df87ee0 (patch)
tree8daa92ecd7088d6ace08833f64ba2251be9b310f /Modules/_testcapimodule.c
parent175421b58cc97a2555e474f479f30a6c5d2250b0 (diff)
downloadcpython-be3b295838547bba267eb08434b418ef0df87ee0.zip
cpython-be3b295838547bba267eb08434b418ef0df87ee0.tar.gz
cpython-be3b295838547bba267eb08434b418ef0df87ee0.tar.bz2
bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)
Move PyInterpreterState into the "internal" header files.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 85810f3..350ef77 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -4685,7 +4685,7 @@ static PyObject *
get_core_config(PyObject *self, PyObject *Py_UNUSED(args))
{
PyInterpreterState *interp = _PyInterpreterState_Get();
- const _PyCoreConfig *config = &interp->core_config;
+ const _PyCoreConfig *config = _PyInterpreterState_GetCoreConfig(interp);
return _PyCoreConfig_AsDict(config);
}
@@ -4694,7 +4694,7 @@ static PyObject *
get_main_config(PyObject *self, PyObject *Py_UNUSED(args))
{
PyInterpreterState *interp = _PyInterpreterState_Get();
- const _PyMainInterpreterConfig *config = &interp->config;
+ const _PyMainInterpreterConfig *config = _PyInterpreterState_GetMainConfig(interp);
return _PyMainInterpreterConfig_AsDict(config);
}