summaryrefslogtreecommitdiff
path: root/Programs
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-02-23 11:35:52 -0700
committerGitHub <noreply@github.com>2019-02-23 11:35:52 -0700
commitbe3b295838547bba267eb08434b418ef0df87ee0 (patch)
tree8daa92ecd7088d6ace08833f64ba2251be9b310f /Programs
parent175421b58cc97a2555e474f479f30a6c5d2250b0 (diff)
downloadcpython-git-be3b295838547bba267eb08434b418ef0df87ee0.tar.gz
bpo-35886: Make PyInterpreterState an opaque type in the public API. (GH-11731)
Move PyInterpreterState into the "internal" header files.
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_testembed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 22212bff52..e28d94c175 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -315,7 +315,7 @@ dump_config_impl(void)
/* core config */
PyInterpreterState *interp = _PyInterpreterState_Get();
- const _PyCoreConfig *core_config = &interp->core_config;
+ const _PyCoreConfig *core_config = _PyInterpreterState_GetCoreConfig(interp);
dict = _PyCoreConfig_AsDict(core_config);
if (dict == NULL) {
goto error;
@@ -326,7 +326,7 @@ dump_config_impl(void)
Py_CLEAR(dict);
/* main config */
- const _PyMainInterpreterConfig *main_config = &interp->config;
+ const _PyMainInterpreterConfig *main_config = _PyInterpreterState_GetMainConfig(interp);
dict = _PyMainInterpreterConfig_AsDict(main_config);
if (dict == NULL) {
goto error;