mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-126986: Drop _PyInterpreterState_FailIfNotRunning() (gh-126988)
We replace it with _PyErr_SetInterpreterAlreadyRunning().
This commit is contained in:
parent
0063f5f314
commit
d6b3e78504
3 changed files with 10 additions and 15 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue