diff options
author | Victor Stinner <vstinner@python.org> | 2025-01-31 09:45:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-31 09:45:35 +0100 |
commit | 95504f429eec04010d0b815345ebcc3af2402af0 (patch) | |
tree | ff42a5c906cab4c4b6b22e1580893fd2d1114485 /Python/gc_free_threading.c | |
parent | 3ebe3d7688475e98a34d691e1ba50d8b7178a575 (diff) | |
download | cpython-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.c | 6 |
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; } |