From 0b3d6b8add8c4fd45a176f5df6855b19ad62428a Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 12 Oct 2019 19:53:17 -0400 Subject: [PATCH] Get ready for release 3.5.0 --- .gitignore | 1 + NEWS.md | 9 ++++++ __pkginfo__.py | 2 +- test/Makefile | 18 +++++++++-- test/bytecode_1.0/simple_const.pyc | Bin 0 -> 232 bytes test/bytecode_1.0/unpack_assign.pyc | Bin 0 -> 156 bytes test/bytecode_1.1/simple_const.pyc | Bin 0 -> 232 bytes test/bytecode_1.2/simple_const.pyc | Bin 0 -> 232 bytes test/bytecode_1.6/simple_const.pyc | Bin 0 -> 274 bytes test/test_pythonlib.py | 4 +++ uncompyle6/parser.py | 28 +++++++++++++++-- uncompyle6/parsers/parse10.py | 25 +++++++++++++++ uncompyle6/parsers/parse11.py | 25 +++++++++++++++ uncompyle6/parsers/parse12.py | 25 +++++++++++++++ uncompyle6/parsers/parse16.py | 46 ++++++++++++++++++++++++++++ uncompyle6/scanner.py | 2 +- uncompyle6/scanners/scanner10.py | 35 +++++++++++++++++++++ uncompyle6/scanners/scanner11.py | 35 +++++++++++++++++++++ uncompyle6/scanners/scanner12.py | 36 ++++++++++++++++++++++ uncompyle6/scanners/scanner13.py | 2 ++ uncompyle6/scanners/scanner16.py | 41 +++++++++++++++++++++++++ uncompyle6/version.py | 2 +- 22 files changed, 329 insertions(+), 7 deletions(-) create mode 100644 test/bytecode_1.0/simple_const.pyc create mode 100644 test/bytecode_1.0/unpack_assign.pyc create mode 100644 test/bytecode_1.1/simple_const.pyc create mode 100644 test/bytecode_1.2/simple_const.pyc create mode 100644 test/bytecode_1.6/simple_const.pyc create mode 100644 uncompyle6/parsers/parse10.py create mode 100644 uncompyle6/parsers/parse11.py create mode 100644 uncompyle6/parsers/parse12.py create mode 100644 uncompyle6/parsers/parse16.py create mode 100644 uncompyle6/scanners/scanner10.py create mode 100644 uncompyle6/scanners/scanner11.py create mode 100644 uncompyle6/scanners/scanner12.py create mode 100644 uncompyle6/scanners/scanner16.py diff --git a/.gitignore b/.gitignore index 6507827e..ab75fa8e 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /.eggs /.hypothesis /.idea +/.mypy_cache /.pytest_cache /.python-version /.tox diff --git a/NEWS.md b/NEWS.md index c7b9af50..b54a4df3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,12 @@ +4.1.0 2019-10-12 Stony Brook Ride +================================= + +- Fix fragment bugs + * missing RETURN_LAST introduced when adding transformation layer + * more parent entries on tokens +- Preliminary support for decompiling Python 1.0, 1.1. 1.2 and 1.6 + * Newer xdis version needed + 3.4.1 2019-10-02 ================ diff --git a/__pkginfo__.py b/__pkginfo__.py index 58b46e4d..3a36b559 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -58,7 +58,7 @@ entry_points = { ]} ftp_url = None install_requires = ["spark-parser >= 1.8.9, < 1.9.0", - "xdis >= 4.0.4, < 4.1.0"] + "xdis >= 4.1.0, < 4.2.0"] license = "GPL3" mailing_list = "python-debugger@googlegroups.com" diff --git a/test/Makefile b/test/Makefile index 21f0aae5..afaf1489 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,6 @@ PHONY=check clean dist distclean test test-unit test-functional rmChangeLog clean_pyc nosetests \ - check-bytecode-1 check-bytecode-1.3 check-bytecode-1.4 check-bytecode-1.5 \ + check-bytecode-1.0 check-bytecode-1.1 check-bytecode-1.2 check-bytecode-1.3 \ + check-bytecode-1 check-bytecode-1.4 check-bytecode-1.5 check-bytecode-1.6 \ check-bytecode-2 check-bytecode-3 check-bytecode-3-short \ check-bytecode-2.2 check-byteocde-2.3 check-bytecode-2.4 \ check-short check-2.6 check-2.7 check-3.0 check-3.1 check-3.2 check-3.3 \ @@ -85,7 +86,7 @@ check-disasm: $(PYTHON) dis-compare.py #: Check deparsing bytecode 1.x only -check-bytecode-1: check-bytecode-1.4 check-bytecode-1.5 +check-bytecode-1: check-bytecode-1.0 check-bytecode-1.1 check-bytecode-1.2 check-bytecode-1.3 check-bytecode-1.4 check-bytecode-1.5 check-byecode-1.4 #: Check deparsing bytecode 2.x only check-bytecode-2: @@ -109,6 +110,7 @@ check-bytecode-3-short: #: Check deparsing bytecode on all Python 2 and Python 3 versions check-bytecode: check-bytecode-3 $(PYTHON) test_pythonlib.py \ + --bytecode-1.0 --bytecode-1.1 --bytecode-1.2 \ --bytecode-1.3 --bytecode-1.4 --bytecode-1.5 \ --bytecode-2.2 --bytecode-2.3 --bytecode-2.4 \ --bytecode-2.1 --bytecode-2.2 --bytecode-2.3 --bytecode-2.4 \ @@ -122,6 +124,18 @@ check-bytecode-short: check-bytecode-3-short --bytecode-2.6 --bytecode-2.7 --bytecode-pypy2.7 +#: Check deparsing bytecode 1.0 only +check-bytecode-1.0: + $(PYTHON) test_pythonlib.py --bytecode-1.0 + +#: Check deparsing bytecode 1.1 only +check-bytecode-1.1: + $(PYTHON) test_pythonlib.py --bytecode-1.1 + +#: Check deparsing bytecode 1.2 only +check-bytecode-1.2: + $(PYTHON) test_pythonlib.py --bytecode-1.2 + #: Check deparsing bytecode 1.3 only check-bytecode-1.3: $(PYTHON) test_pythonlib.py --bytecode-1.3 diff --git a/test/bytecode_1.0/simple_const.pyc b/test/bytecode_1.0/simple_const.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b6997b6057503cbe08b52c4d9cd0367d977750da GIT binary patch literal 232 zcmXZVy$ZrG6b0bZG;Qh+K8Qo5sDmOnxVyNesA!YaB85V_bjnjW^j&;7Z-Nj$ayXZJ z**N06|6EV@2Efrvp#VuA0Tn?;a2XVXWN;Ix7>dJCjNztG2@K6}xY@s|sY>AHcmbRi zF_q#VX{W%Y%;-e3B#c<+#irQqET`0K+c%N#m?tKz=dFixDSYzfBlrwfK^4?N6Rhom SCi7J{wAH=WZI^dLD2_jEJSL<7 literal 0 HcmV?d00001 diff --git a/test/bytecode_1.0/unpack_assign.pyc b/test/bytecode_1.0/unpack_assign.pyc new file mode 100644 index 0000000000000000000000000000000000000000..79410b51cbc6cfebd909e9a3e5f4f6c84ac78e40 GIT binary patch literal 156 zcmZRYIg{bhj_I+^#m)>24D~?7$dJOokOCx`7}A&-qJSby45W?!D5hL1(-|(lSyDQxtI?quBTs6 SnVTG6lA2qfS5OI-um=D$k{Uh$ literal 0 HcmV?d00001 diff --git a/test/bytecode_1.1/simple_const.pyc b/test/bytecode_1.1/simple_const.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fa93803332aad0e80afc93f06d90d7c9f2129226 GIT binary patch literal 232 zcmXZVy$ZrG6b0bZByH*sK1Xq=6m?Jp2X_~@fQmLvEmA0?OQ$@ALm$bv@+Ju3BZqUj zmyaX9`_J`cZvY&<1R7BEk z#B_p#qMZ_#ETt38k}z_e7n@?cvw~7z*}jQ<$2^>{o_95zGwG8rAHip^4C-JNG{M>~ TXfj`QLtEbas_pV_2*vRSQmiIS literal 0 HcmV?d00001 diff --git a/test/bytecode_1.2/simple_const.pyc b/test/bytecode_1.2/simple_const.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1d91a84fe8991595c1f73d7a92b12603e3f5becd GIT binary patch literal 232 zcmXZVO$x#=5C!1ZCT;2uo};*^6m=m8F5J6u7f{hAsYMEf6tSz^Lg;Os1R;Fn@rD^T zj`+O4m!rJ`aP(3rK+;D*MUW9(1{Fiba1$s7#bGEixG7WuLo*z1_OEKH61X{@0H;N< zO0k!;Q{bFubfQ@jMy!i+Q*L*bQ|h(to5**uhY{BE(!(hiKKb$elPFE4m>RhaW(mCO7~9 literal 0 HcmV?d00001 diff --git a/test/bytecode_1.6/simple_const.pyc b/test/bytecode_1.6/simple_const.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c7717dd7a703d17510ec210b384e702576db63eb GIT binary patch literal 274 zcmXYqF%E)25Jmq2f+)t;BM=LWQ413jZ(w6bj6_*bq9Vy+VYQVv^E{rw!oM45XI^&l zfBt;mgWl(r?Q*a@j@lEN?Lz`7KLMmbDxkZN4pIj?gmfW2lw4it9%Kh4Jsx!bFP$iL zpd*|a%OFSkSf$Jiu#LMsQH_Z*m?hKsbg@+CbX%yl5=L_jTtXRKisvQ{%x1)c<-)q$-&C~kUK2$_gBtpKSh&Vs. # This file is suitable for sourcing inside bash as # well as importing into Python -VERSION="3.4.1" # noqa +VERSION="3.5.0" # noqa