mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
This commit is contained in:
parent
134cb01cda
commit
fe2bbb1869
10 changed files with 97 additions and 70 deletions
|
@ -2625,10 +2625,6 @@ compiler_continue(struct compiler *c)
|
|||
ADDOP_JABS(c, JUMP_ABSOLUTE, info->fb_block);
|
||||
return 1;
|
||||
}
|
||||
if (info->fb_type == FINALLY_END) {
|
||||
return compiler_error(c,
|
||||
"'continue' not supported inside 'finally' clause");
|
||||
}
|
||||
if (!compiler_unwind_fblock(c, info, 0))
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue