summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-01-31 08:45:35 (GMT)
committerGitHub <noreply@github.com>2025-01-31 08:45:35 (GMT)
commit95504f429eec04010d0b815345ebcc3af2402af0 (patch)
treeff42a5c906cab4c4b6b22e1580893fd2d1114485 /Python/compile.c
parent3ebe3d7688475e98a34d691e1ba50d8b7178a575 (diff)
downloadcpython-95504f429eec04010d0b815345ebcc3af2402af0.zip
cpython-95504f429eec04010d0b815345ebcc3af2402af0.tar.gz
cpython-95504f429eec04010d0b815345ebcc3af2402af0.tar.bz2
gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475)
Replace "on verb+ing" with "while verb+ing".
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index ef47083..b58c12d 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -704,12 +704,12 @@ _PyCompile_ExitScope(compiler *c)
assert(c->u);
/* we are deleting from a list so this really shouldn't fail */
if (PySequence_DelItem(c->c_stack, n) < 0) {
- PyErr_FormatUnraisable("Exception ignored on removing "
+ PyErr_FormatUnraisable("Exception ignored while removing "
"the last compiler stack item");
}
if (nested_seq != NULL) {
if (_PyInstructionSequence_AddNested(c->u->u_instr_sequence, nested_seq) < 0) {
- PyErr_FormatUnraisable("Exception ignored on appending "
+ PyErr_FormatUnraisable("Exception ignored while appending "
"nested instruction sequence");
}
}