From 41f360e3dc418a077895fb607451a209b03a2c65 Mon Sep 17 00:00:00 2001 From: rocky Date: Sun, 6 Nov 2016 09:20:46 -0500 Subject: [PATCH] Start bytecode 3.0 decompiling --- test/Makefile | 5 +++-- test/bytecode_3.0/00_assign.pyc | Bin 0 -> 186 bytes test/bytecode_3.0/00_import.pyc | Bin 0 -> 272 bytes test/bytecode_3.0/00_pass.pyc | Bin 0 -> 123 bytes test/bytecode_3.0/04_multi_assign.pyc | Bin 0 -> 210 bytes test/bytecode_3.0/04_raise.pyc | Bin 0 -> 360 bytes test/bytecode_3.0/04_withas.pyc | Bin 0 -> 388 bytes test/bytecode_3.0/10_for.pyc | Bin 0 -> 221 bytes test/test_pythonlib.py | 2 +- uncompyle6/parsers/parse30.py | 10 ++++++++-- 10 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 test/bytecode_3.0/00_assign.pyc create mode 100644 test/bytecode_3.0/00_import.pyc create mode 100644 test/bytecode_3.0/00_pass.pyc create mode 100644 test/bytecode_3.0/04_multi_assign.pyc create mode 100644 test/bytecode_3.0/04_raise.pyc create mode 100644 test/bytecode_3.0/04_withas.pyc create mode 100644 test/bytecode_3.0/10_for.pyc diff --git a/test/Makefile b/test/Makefile index e36ff3c0..2f8e56ca 100644 --- a/test/Makefile +++ b/test/Makefile @@ -66,7 +66,8 @@ check-bytecode-2: #: Check deparsing bytecode 3.x only check-bytecode-3: - $(PYTHON) test_pythonlib.py --bytecode-3.1 --bytecode-3.2 --bytecode-3.3 \ + $(PYTHON) test_pythonlib.py --bytecode-3.0 \ + --bytecode-3.1 --bytecode-3.2 --bytecode-3.3 \ --bytecode-3.4 --bytecode-3.5 --bytecode-pypy3.2 #: Check deparsing bytecode that works running Python 2 and Python 3 @@ -107,7 +108,7 @@ check-bytecode-2.7: #: Check deparsing Python 3.0 check-bytecode-3.0: - @echo testing not done yet + $(PYTHON) test_pythonlib.py --bytecode-3.0 #: Check deparsing Python 3.1 check-bytecode-3.1: diff --git a/test/bytecode_3.0/00_assign.pyc b/test/bytecode_3.0/00_assign.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3c63e6d5667d2790ea148a1c0127b51b5d30128c GIT binary patch literal 186 zcmcEK;pGyttO!eHKmv?FwgV6sivfug28Jjg$;1%F#E`9U5Zt7#lv2S@@EAPU_N<8b0bUe@TtwP{g@lxDa_HF)@)zB-zCv~~Gdr8z z13<3L zXM}Hr5&g-EC@A( zXJM2V)y^j5f;VAlvTU?{j1*mI#?dMjXSurhcT z5#eouKEf`-c7T3>WG;Ta!Or0BUStxh*(~^a^&;Ze!V&rXuS4y)C5ko5D_Jg=LD1vb z;#-_9!YbEUlNa?