mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475)
Replace "on verb+ing" with "while verb+ing".
This commit is contained in:
parent
3ebe3d7688
commit
95504f429e
25 changed files with 79 additions and 59 deletions
|
@ -1427,7 +1427,8 @@ invoke_gc_callback(PyThreadState *tstate, const char *phase,
|
|||
"collected", collected,
|
||||
"uncollectable", uncollectable);
|
||||
if (info == NULL) {
|
||||
PyErr_FormatUnraisable("Exception ignored on invoking gc callbacks");
|
||||
PyErr_FormatUnraisable("Exception ignored while "
|
||||
"invoking gc callbacks");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1435,7 +1436,8 @@ invoke_gc_callback(PyThreadState *tstate, const char *phase,
|
|||
PyObject *phase_obj = PyUnicode_FromString(phase);
|
||||
if (phase_obj == NULL) {
|
||||
Py_XDECREF(info);
|
||||
PyErr_FormatUnraisable("Exception ignored on invoking gc callbacks");
|
||||
PyErr_FormatUnraisable("Exception ignored while "
|
||||
"invoking gc callbacks");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue