diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-01 10:26:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-01 10:26:04 (GMT) |
commit | d49f096cc41f57155efe71cd089c29b38c218488 (patch) | |
tree | 1830b017fe1259e6d5cc27390f0331a83b7d8ba2 /PC | |
parent | 938c00ca9e4207a2531041edff2e82490b02047f (diff) | |
download | cpython-d49f096cc41f57155efe71cd089c29b38c218488.zip cpython-d49f096cc41f57155efe71cd089c29b38c218488.tar.gz cpython-d49f096cc41f57155efe71cd089c29b38c218488.tar.bz2 |
bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509)
PyConfig_InitPythonConfig() and PyConfig_InitIsolatedConfig() no
longer return PyStatus: they cannot fail anymore.
(cherry picked from commit 8462a4936b3a551dc546a6adea04a70b0a07ca67)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'PC')
-rw-r--r-- | PC/python_uwp.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/PC/python_uwp.cpp b/PC/python_uwp.cpp index 758c8f7..88369e8 100644 --- a/PC/python_uwp.cpp +++ b/PC/python_uwp.cpp @@ -193,10 +193,7 @@ wmain(int argc, wchar_t **argv) } } - status = PyConfig_InitPythonConfig(&config); - if (PyStatus_Exception(status)) { - goto fail_without_config; - } + PyConfig_InitPythonConfig(&config); status = PyConfig_SetArgv(&config, argc, argv); if (PyStatus_Exception(status)) { |