diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-30 13:31:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 13:31:42 (GMT) |
commit | e1b29950bf751381538e3c8ea6a3e0a98d01dbfb (patch) | |
tree | f52d54f2efda4afd9a2fff1eb4330d7b0999ad8b /Include/sysmodule.h | |
parent | 905f1ace5f7424e314ca7bed997868a2a3044839 (diff) | |
download | cpython-e1b29950bf751381538e3c8ea6a3e0a98d01dbfb.zip cpython-e1b29950bf751381538e3c8ea6a3e0a98d01dbfb.tar.gz cpython-e1b29950bf751381538e3c8ea6a3e0a98d01dbfb.tar.bz2 |
bpo-32030: Make _PySys_AddXOptionWithError() private (GH-10236)
Make _PySys_AddXOptionWithError() and _PySys_AddWarnOptionWithError()
functions private again. They are no longer needed to initialize Python:
_PySys_EndInit() is now responsible to add these options instead.
Moreover, PySys_AddWarnOptionUnicode() now clears the exception on
failure if possible.
Diffstat (limited to 'Include/sysmodule.h')
-rw-r--r-- | Include/sysmodule.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h index 719ecfc..c5547ff 100644 --- a/Include/sysmodule.h +++ b/Include/sysmodule.h @@ -37,11 +37,6 @@ PyAPI_FUNC(PyObject *) PySys_GetXOptions(void); PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *); #endif -#ifdef Py_BUILD_CORE -PyAPI_FUNC(int) _PySys_AddXOptionWithError(const wchar_t *s); -PyAPI_FUNC(int) _PySys_AddWarnOptionWithError(PyObject *option); -#endif - #ifdef __cplusplus } #endif |