You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Part of the decompye3 loop "continue" fixes
This commit is contained in:
@@ -49,6 +49,7 @@ class Python38Parser(Python37Parser):
|
||||
stmt ::= whilestmt38
|
||||
stmt ::= whileTruestmt38
|
||||
stmt ::= call_stmt
|
||||
stmt ::= continue
|
||||
|
||||
call_stmt ::= call
|
||||
break ::= POP_BLOCK BREAK_LOOP
|
||||
@@ -56,6 +57,12 @@ class Python38Parser(Python37Parser):
|
||||
break ::= POP_TOP BREAK_LOOP
|
||||
break ::= POP_EXCEPT BREAK_LOOP
|
||||
|
||||
# The "continue" rule is a weird one. In 3.8, CONTINUE_LOOP was removed.
|
||||
# Inside an loop we can have this, which can only appear in side a try/except
|
||||
# And it can also appear at the end of the try except.
|
||||
continue ::= POP_EXCEPT JUMP_BACK
|
||||
|
||||
|
||||
# FIXME: this should be restricted to being inside a try block
|
||||
stmt ::= except_ret38
|
||||
stmt ::= except_ret38a
|
||||
|
Reference in New Issue
Block a user