mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +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
|
|
@ -1042,7 +1042,8 @@ PyObject_ClearWeakRefs(PyObject *object)
|
|||
PyObject *tuple = PyTuple_New(num_weakrefs * 2);
|
||||
if (tuple == NULL) {
|
||||
_PyWeakref_ClearWeakRefsNoCallbacks(object);
|
||||
PyErr_FormatUnraisable("Exception ignored when clearing object weakrefs");
|
||||
PyErr_FormatUnraisable("Exception ignored while "
|
||||
"clearing object weakrefs");
|
||||
PyErr_SetRaisedException(exc);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue