diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-10-01 10:06:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 10:06:16 (GMT) |
commit | 8462a4936b3a551dc546a6adea04a70b0a07ca67 (patch) | |
tree | 3c4655f174d1aa9abcdb5226532db0e4d7434bca /Modules/main.c | |
parent | 3c30a76f3d3c0dcc1fb4de097fa4a3a4c92c0b0b (diff) | |
download | cpython-8462a4936b3a551dc546a6adea04a70b0a07ca67.zip cpython-8462a4936b3a551dc546a6adea04a70b0a07ca67.tar.gz cpython-8462a4936b3a551dc546a6adea04a70b0a07ca67.tar.bz2 |
bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509)
PyConfig_InitPythonConfig() and PyConfig_InitIsolatedConfig() no
longer return PyStatus: they cannot fail anymore.
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/main.c b/Modules/main.c index 9cbf3ac..526b0ad 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -61,11 +61,7 @@ pymain_init(const _PyArgv *args) } PyConfig config; - - status = PyConfig_InitPythonConfig(&config); - if (_PyStatus_EXCEPTION(status)) { - goto done; - } + PyConfig_InitPythonConfig(&config); /* pass NULL as the config: config is read from command line arguments, environment variables, configuration files */ |