diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-01 03:35:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 03:35:33 (GMT) |
commit | db7197543112954b0912e3d46e39fefcb1c3b950 (patch) | |
tree | 0c82232775c6b1a03671054f9e70f2bb99e6adc9 /Python/bootstrap_hash.c | |
parent | c4e671eec20dfcb29b18596a89ef075f826c9f96 (diff) | |
download | cpython-db7197543112954b0912e3d46e39fefcb1c3b950.zip cpython-db7197543112954b0912e3d46e39fefcb1c3b950.tar.gz cpython-db7197543112954b0912e3d46e39fefcb1c3b950.tar.bz2 |
bpo-36763: Rework _PyInitError API (GH-13031)
* Remove _PyInitError.user_err field and _Py_INIT_USER_ERR() macro:
use _Py_INIT_ERR() instead. _Py_ExitInitError() now longer calls
abort() on error: exit with exit code 1 instead.
* Add _PyInitError._type private field.
* exitcode field type is now unsigned int on Windows.
* Rename prefix field to _func.
* Rename msg field to err_msg.
Diffstat (limited to 'Python/bootstrap_hash.c')
-rw-r--r-- | Python/bootstrap_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bootstrap_hash.c b/Python/bootstrap_hash.c index 35d9b7f..dd752b8 100644 --- a/Python/bootstrap_hash.c +++ b/Python/bootstrap_hash.c @@ -578,8 +578,8 @@ _Py_HashRandomization_Init(const _PyCoreConfig *config) pyurandom() is non-blocking mode (blocking=0): see the PEP 524. */ res = pyurandom(secret, secret_size, 0, 0); if (res < 0) { - return _Py_INIT_USER_ERR("failed to get random numbers " - "to initialize Python"); + return _Py_INIT_ERR("failed to get random numbers " + "to initialize Python"); } } return _Py_INIT_OK(); |