From fe2bbb1869b42222a3f331a3dfb8b304a19a5819 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 18 Mar 2018 09:56:52 +0200 Subject: bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822) --- Python/compile.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index fbd1fc960a..c3ffaae8ce 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; } -- cgit v1.2.1