diff --git a/test/bytecode_3.5/15_for_if.pyc b/test/bytecode_3.5/15_for_if.pyc new file mode 100644 index 00000000..db56a5a8 Binary files /dev/null and b/test/bytecode_3.5/15_for_if.pyc differ diff --git a/uncompyle6/parsers/parse3.py b/uncompyle6/parsers/parse3.py index 0e509b2d..4a21200c 100644 --- a/uncompyle6/parsers/parse3.py +++ b/uncompyle6/parsers/parse3.py @@ -274,6 +274,8 @@ class Python3Parser(PythonParser): _ifstmts_jump ::= return_if_stmts _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_from _come_from + + # FIXME: this optimization is only used in Python 3.5 and beyond _ifstmts_jump ::= c_stmts_opt iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE