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