mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue