mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
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 8462a4936b)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
committed by
GitHub
parent
938c00ca9e
commit
d49f096cc4
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user