summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-03-18 09:56:52 +0200
committerGitHub <noreply@github.com>2018-03-18 09:56:52 +0200
commitfe2bbb1869b42222a3f331a3dfb8b304a19a5819 (patch)
tree0f9e51eb7b9dbfab1d92a1538cef297081a46b55 /Python
parent134cb01cda50f02725575808130b05d2d776693f (diff)
downloadcpython-git-fe2bbb1869b42222a3f331a3dfb8b304a19a5819.tar.gz
bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c4
1 files changed, 0 insertions, 4 deletions
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;
}