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 /Include | |
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 'Include')
-rw-r--r-- | Include/cpython/initconfig.h | 4 | ||||
-rw-r--r-- | Include/internal/pycore_initconfig.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h index 25e02ce..4b5ceaf 100644 --- a/Include/cpython/initconfig.h +++ b/Include/cpython/initconfig.h @@ -404,8 +404,8 @@ typedef struct { int _init_main; } PyConfig; -PyAPI_FUNC(PyStatus) PyConfig_InitPythonConfig(PyConfig *config); -PyAPI_FUNC(PyStatus) PyConfig_InitIsolatedConfig(PyConfig *config); +PyAPI_FUNC(void) PyConfig_InitPythonConfig(PyConfig *config); +PyAPI_FUNC(void) PyConfig_InitIsolatedConfig(PyConfig *config); PyAPI_FUNC(void) PyConfig_Clear(PyConfig *); PyAPI_FUNC(PyStatus) PyConfig_SetString( PyConfig *config, diff --git a/Include/internal/pycore_initconfig.h b/Include/internal/pycore_initconfig.h index e9810bc..40831c4 100644 --- a/Include/internal/pycore_initconfig.h +++ b/Include/internal/pycore_initconfig.h @@ -144,7 +144,7 @@ typedef enum { _PyConfig_INIT_ISOLATED = 3 } _PyConfigInitEnum; -PyAPI_FUNC(PyStatus) _PyConfig_InitCompatConfig(PyConfig *config); +PyAPI_FUNC(void) _PyConfig_InitCompatConfig(PyConfig *config); extern PyStatus _PyConfig_Copy( PyConfig *config, const PyConfig *config2); |