From a7005f6a77d954142df153daae0545f127848c4e Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 2 Dec 2017 09:23:18 -0500 Subject: [PATCH] 2.7 exec stmt grammar rule isolation/reduction --- test/bytecode_2.6/02_test_exec.pyc | Bin 0 -> 216 bytes test/simple_source/stmts/02_test_exec.py | 13 +++++++++++++ uncompyle6/parser.py | 3 --- uncompyle6/parsers/parse2.py | 14 +++++++------- uncompyle6/parsers/parse35.py | 5 ----- uncompyle6/scanners/scanner2.py | 12 +++++------- uncompyle6/scanners/scanner26.py | 4 ++++ 7 files changed, 29 insertions(+), 22 deletions(-) create mode 100644 test/bytecode_2.6/02_test_exec.pyc create mode 100644 test/simple_source/stmts/02_test_exec.py diff --git a/test/bytecode_2.6/02_test_exec.pyc b/test/bytecode_2.6/02_test_exec.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e92742343dfdfb870c74e07f233b46f6c8d72454 GIT binary patch literal 216 zcmcckiI+=Zn^IIV0~9a=X$K%K)&&wN3=B~W45>f{BLhn)kWOV}Xl6iWrZRy9LV@zZ z8cZN 2.0 and op == self.opc.CONTINUE_LOOP: customize[op_name] = 0 + elif op_name in """ + CONTINUE_LOOP EXEC_STMT LOAD_LISTCOMP LOAD_SETCOMP + """.split(): + customize[op_name] = 0 elif op == self.opc.JUMP_ABSOLUTE: # Further classify JUMP_ABSOLUTE into backward jumps # which are used in loops, and "CONTINUE" jumps which