diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-27 01:36:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 01:36:16 +0100 |
commit | 8b9dbc017a190d13f717e714630d620adb7c7ac2 (patch) | |
tree | aec94454c3d4ee9f96f19d98eb64a9a9c5df7d97 /Python/coreconfig.c | |
parent | 6a258c88906a7e8acde455ee2acb78b6f315ea0b (diff) | |
download | cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.tar.gz cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.zip |
bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)
Diffstat (limited to 'Python/coreconfig.c')
-rw-r--r-- | Python/coreconfig.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/coreconfig.c b/Python/coreconfig.c index 2f54e79081f..944a9e22ca1 100644 --- a/Python/coreconfig.c +++ b/Python/coreconfig.c @@ -2208,17 +2208,6 @@ _Py_GetConfigsAsDict(void) } Py_CLEAR(dict); - /* main config */ - const _PyMainInterpreterConfig *main_config = _PyInterpreterState_GetMainConfig(interp); - dict = _PyMainInterpreterConfig_AsDict(main_config); - if (dict == NULL) { - goto error; - } - if (PyDict_SetItemString(config, "main_config", dict) < 0) { - goto error; - } - Py_CLEAR(dict); - return config; error: |