diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-11-18 17:11:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 00:11:12 +0000 |
commit | d6b3e78504b3168c432b20002dbcf8ec9a435e61 (patch) | |
tree | 80f67fcc0eb7b52b925117e674db1845c870dd62 /Python/crossinterp.c | |
parent | 0063f5f314350ad5122a86f31df65f5dff4f4e5c (diff) | |
download | cpython-d6b3e78504b3168c432b20002dbcf8ec9a435e61.tar.gz cpython-d6b3e78504b3168c432b20002dbcf8ec9a435e61.zip |
gh-126986: Drop _PyInterpreterState_FailIfNotRunning() (gh-126988)
We replace it with _PyErr_SetInterpreterAlreadyRunning().
Diffstat (limited to 'Python/crossinterp.c')
-rw-r--r-- | Python/crossinterp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/crossinterp.c b/Python/crossinterp.c index fe7d75f6b72..7aaa045f375 100644 --- a/Python/crossinterp.c +++ b/Python/crossinterp.c @@ -983,8 +983,7 @@ _PyXI_ApplyErrorCode(_PyXI_errcode code, PyInterpreterState *interp) break; case _PyXI_ERR_ALREADY_RUNNING: assert(interp != NULL); - assert(_PyInterpreterState_IsRunningMain(interp)); - _PyInterpreterState_FailIfRunningMain(interp); + _PyErr_SetInterpreterAlreadyRunning(); break; case _PyXI_ERR_MAIN_NS_FAILURE: PyErr_SetString(PyExc_InterpreterError, |