mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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
|
@ -1698,17 +1698,6 @@ format_unraisable(PyObject *obj, const char *format, ...)
|
|||
va_end(va);
|
||||
}
|
||||
|
||||
void
|
||||
_PyErr_WriteUnraisableMsg(const char *err_msg_str, PyObject *obj)
|
||||
{
|
||||
if (err_msg_str) {
|
||||
format_unraisable(obj, "Exception ignored %s", err_msg_str);
|
||||
}
|
||||
else {
|
||||
format_unraisable(obj, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
PyErr_WriteUnraisable(PyObject *obj)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue