aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/crossinterp.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2024-11-18 17:11:12 -0700
committerGitHub <noreply@github.com>2024-11-19 00:11:12 +0000
commitd6b3e78504b3168c432b20002dbcf8ec9a435e61 (patch)
tree80f67fcc0eb7b52b925117e674db1845c870dd62 /Python/crossinterp.c
parent0063f5f314350ad5122a86f31df65f5dff4f4e5c (diff)
downloadcpython-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.c3
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,