From aced47a020bf05066fce60e5a03ea7f20ee3658f Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 20 Jul 2024 02:28:18 -0400 Subject: [PATCH] Sync with 2.4 branch --- uncompyle6/parsers/parse26.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uncompyle6/parsers/parse26.py b/uncompyle6/parsers/parse26.py index cbce00e26..0eb5f46c8 100644 --- a/uncompyle6/parsers/parse26.py +++ b/uncompyle6/parsers/parse26.py @@ -132,6 +132,9 @@ def p_stmt26(self, args): ifelsestmtc ::= testexpr c_stmts_opt ja_cf_pop else_suitec ifelsestmt ::= testexpr stmts_opt ja_cf_pop else_suite + stmts_opt ::= stmts + stmts_opt ::= + # The last except of a "try: ... except" can do this... except_suite ::= stmts_opt COME_FROM JUMP_ABSOLUTE POP_TOP