bpo-44321: Adds `os.EX_OK` for Windows (GH-26559)

This commit is contained in:
Samuel Marks 2021-06-25 02:45:18 +10:00 committed by GitHub
parent 0acc258fe6
commit 19459f8ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -3656,9 +3656,10 @@ written in Python, such as a mail server's external command delivery program.
.. data:: EX_OK
Exit code that means no error occurred.
Exit code that means no error occurred. May be taken from the defined value of
``EXIT_SUCCESS`` on some platforms. Generally has a value of zero.
.. availability:: Unix.
.. availability:: Unix, Windows.
.. data:: EX_USAGE

View File

@ -23,6 +23,10 @@
# include <pathcch.h>
#endif
#if !defined(EX_OK) && defined(EXIT_SUCCESS)
#define EX_OK EXIT_SUCCESS
#endif
#ifdef __VXWORKS__
# include "pycore_bitutils.h" // _Py_popcount32()
#endif