mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-108082: Remove _PyErr_WriteUnraisableMsg() (GH-111643)
Replace the remaining calls with PyErr_FormatUnraisable().
This commit is contained in:
parent
0d3df272fb
commit
26c0e5e03a
13 changed files with 85 additions and 147 deletions
|
|
@ -5,7 +5,6 @@
|
|||
#include "Python.h"
|
||||
#include "pycore_interp.h" // _PyInterpreterState.threads.count
|
||||
#include "pycore_moduleobject.h" // _PyModule_GetState()
|
||||
#include "pycore_pyerrors.h" // _PyErr_WriteUnraisableMsg()
|
||||
#include "pycore_pylifecycle.h"
|
||||
#include "pycore_pystate.h" // _PyThreadState_SetCurrent()
|
||||
#include "pycore_sysmodule.h" // _PySys_GetAttr()
|
||||
|
|
@ -1071,7 +1070,8 @@ thread_run(void *boot_raw)
|
|||
/* SystemExit is ignored silently */
|
||||
PyErr_Clear();
|
||||
else {
|
||||
_PyErr_WriteUnraisableMsg("in thread started by", boot->func);
|
||||
PyErr_FormatUnraisable(
|
||||
"Exception ignored in thread started by %R", boot->func);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue