From dc7f1ed0ccb218ca142e25ea6e91652ed3d5b6b2 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 18 Apr 2020 23:24:56 -0400 Subject: [PATCH] Final remnants of xdis fixes? Restore the last of the excluded bytecode. --- ..._extended_arg.pyc-notyet => 01_extended_arg.pyc} | Bin ..._extended_arg.pyc-notyet => 01_extended_arg.pyc} | Bin uncompyle6/parsers/reducecheck/or_check.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename test/bytecode_3.6/{01_extended_arg.pyc-notyet => 01_extended_arg.pyc} (100%) rename test/bytecode_3.7/{01_extended_arg.pyc-notyet => 01_extended_arg.pyc} (100%) diff --git a/test/bytecode_3.6/01_extended_arg.pyc-notyet b/test/bytecode_3.6/01_extended_arg.pyc similarity index 100% rename from test/bytecode_3.6/01_extended_arg.pyc-notyet rename to test/bytecode_3.6/01_extended_arg.pyc diff --git a/test/bytecode_3.7/01_extended_arg.pyc-notyet b/test/bytecode_3.7/01_extended_arg.pyc similarity index 100% rename from test/bytecode_3.7/01_extended_arg.pyc-notyet rename to test/bytecode_3.7/01_extended_arg.pyc diff --git a/uncompyle6/parsers/reducecheck/or_check.py b/uncompyle6/parsers/reducecheck/or_check.py index ca2c289a..0c4bd854 100644 --- a/uncompyle6/parsers/reducecheck/or_check.py +++ b/uncompyle6/parsers/reducecheck/or_check.py @@ -48,7 +48,7 @@ def or_check(self, lhs, n, rule, ast, tokens, first, last): return True # If the jmp is backwards - if last_token == "POP_JUMP_IF_FALSE" and not self.version in (2.7, 3.5): + if last_token == "POP_JUMP_IF_FALSE" and not self.version in (2.7, 3.5, 3.6): if last_token.attr < last_token_offset: # For a backwards loop, well compare to the instruction *after* # then POP_JUMP...