aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/gc_free_threading.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-01-31 09:45:35 +0100
committerGitHub <noreply@github.com>2025-01-31 09:45:35 +0100
commit95504f429eec04010d0b815345ebcc3af2402af0 (patch)
treeff42a5c906cab4c4b6b22e1580893fd2d1114485 /Python/gc_free_threading.c
parent3ebe3d7688475e98a34d691e1ba50d8b7178a575 (diff)
downloadcpython-95504f429eec04010d0b815345ebcc3af2402af0.tar.gz
cpython-95504f429eec04010d0b815345ebcc3af2402af0.zip
gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475)
Replace "on verb+ing" with "while verb+ing".
Diffstat (limited to 'Python/gc_free_threading.c')
-rw-r--r--Python/gc_free_threading.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/gc_free_threading.c b/Python/gc_free_threading.c
index 211d52d6cc7..905a14f660e 100644
--- a/Python/gc_free_threading.c
+++ b/Python/gc_free_threading.c
@@ -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;
}