mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-38304: PyConfig_InitPythonConfig() cannot fail anymore (GH-16509)
PyConfig_InitPythonConfig() and PyConfig_InitIsolatedConfig() no longer return PyStatus: they cannot fail anymore.
This commit is contained in:
parent
3c30a76f3d
commit
8462a4936b
12 changed files with 56 additions and 216 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue