rocky
625feb0517
Possibly closer to getting 2.7 to read 3.4 bytecode
2015-12-27 22:24:30 -05:00
rocky
820fdb4771
Fix up Python 2.x's ability to get code from Python 3.x's bytecode
2015-12-27 19:36:02 -05:00
rocky
d774222eb1
defer some tests
2015-12-27 17:11:58 -05:00
rocky
7ec54b15d8
Merge branch 'master' of github.com:rocky/python-uncompyle6
...
Conflicts:
README.rst
2015-12-27 16:51:48 -05:00
rocky
7c5b8d803c
More tests
2015-12-27 16:50:45 -05:00
rocky
c508413689
3.2 bytecode
2015-12-27 15:19:53 -05:00
rocky
f859758aff
Get ready for release 2.1.1
release-2.1.1
2015-12-27 12:55:52 -05:00
rocky
44cd349cc7
DRY Python3 scanner code. Some cross version handling fixed.
...
Some Python 3.2 and 3.3 deparse fixes.
release-2.1.0
2015-12-27 04:43:35 -05:00
rocky
276709cbb9
DRY Python3 scanner code. Some cross version handling fixed.
...
Some Python 3.2 and 3.3 deparse fixes.
2015-12-27 04:32:46 -05:00
rocky
4640e7dece
Running native on Python 3.3 needs more work
2015-12-26 19:32:32 -05:00
rocky
ce8c7a4dc2
Add ok-2.7 tests for 3.4 full testing
2015-12-26 19:25:46 -05:00
rocky
6bd61deccc
Add verify tests. Add Python 2.6 bytecode and use.
2015-12-26 19:14:53 -05:00
rocky
3ac3ef24ac
Add node and template code to cleanup "for" handling
2015-12-26 10:42:57 -05:00
rocky
d6ac51d0a2
Try Python 2.6 testing on travis
2015-12-26 10:25:20 -05:00
rocky
69a8404edb
For testing we can't 3.3 bytecodes on 2.7 yet, so use 3.2
2015-12-26 10:24:02 -05:00
rocky
008bd79719
Fix up Python 3.2, 3.3, and 3.4 cross-version scanners
...
Try travis 2.6 and 3.3
2015-12-26 10:19:26 -05:00
rocky
e8ee3ac751
Travis: try checking 3.4
2015-12-26 07:41:58 -05:00
rocky
7a2703634f
Fix up looping by reinstating JUMP_ABSOLUTE -> JUMP_BACK or CONTINUE
...
get jump offsets into jump attributes. Fix up 3.2 scanner paritally
and use that in 3.4 for in cross version disassembly.
2015-12-26 03:06:03 -05:00
rocky
fe9c8d5734
Python3 try/except handling improvements. Add Walker exception and use
...
that: fixes erroneous uncompyle success message on parse error.
2015-12-26 00:12:02 -05:00
rocky
0409cee6a9
WIP redo try/except for Python3
2015-12-25 17:57:53 -05:00
rocky
39f0f7440b
Fix bugs in using pysource from fragments.
2015-12-25 10:47:07 -05:00
rocky
1d533cbb23
Two modes of disassembly, one where we show hidden code and one where we don't.
2015-12-25 10:08:12 -05:00
rocky
5e3b5ce786
README.rst typos
release-2.0.0
2015-12-25 00:35:11 -05:00
rocky
ea8bea4cd8
Get ready for releaes 2.0.0
2015-12-25 00:31:29 -05:00
rocky
223b028393
Port deparse test from python-deparse to py.test
2015-12-25 00:02:17 -05:00
rocky
1088031335
Remove Python3 class __qualname__ assignment. Change LOAD_NAME to
...
LOAD_CLASSNAME to make parsing more reliable and intentional.
2015-12-24 22:31:24 -05:00
rocky
c0d50c4d96
Improve Python3 class definition handling
2015-12-24 19:21:36 -05:00
rocky
d2406e9d57
One more place for API change
2015-12-24 11:50:08 -05:00
rocky
e3a5d487eb
Show embeded timestamp of byte-decompiled file
2015-12-24 11:30:57 -05:00
rocky
484cd703bf
Lint
2015-12-23 20:11:06 -05:00
rocky
0c45fcfab9
WIP: Python3 exceptions
2015-12-23 20:08:07 -05:00
rocky
d47415a677
Start Python3 class(superclass) handling
2015-12-23 15:42:52 -05:00
rocky
f630fe15fb
parse2.py, pysource.py: add buildclass nonterminal to structure tree
...
better and make more similar to Python3
load.py: handle magic errors better
main.py: correct use when passing a .py instead of a .pyc better and a message
err when file not found.
pysource.py: fix up main docstring; code moved from main.py
2015-12-23 13:49:56 -05:00
rocky
46828cd769
Add fragmnet offsets for 'from x import..'
2015-12-23 07:34:18 -05:00
rocky
72acf4311f
Propogate offsets in imports. Added a new %x format specifier.
2015-12-22 18:00:45 -05:00
rocky
35592b50ed
Allow comments in grammar rules. Start working on Python3 class (not
...
finished). More test organization.
2015-12-22 11:44:04 -05:00
rocky
41cceb5931
Remove Python2 buitin "print" from Python3's grammr. Start class tests
2015-12-22 05:50:00 -05:00
rocky
217b1b6f54
main.py, pysource.py DRY deparse_code from main. Is better on showing
...
exception errrors such as when a pyc file is not found
uncompyle6: Hook in --grammar option to showing grammar.
rules. Default now does not show timestamp.
2015-12-22 05:15:00 -05:00
rocky
4f0fe90eef
Add spark option to show grammer. Revise uncompyle options. Start to reorganize
...
tests more
2015-12-22 03:56:50 -05:00
rocky
d3d375d954
grammar
2015-12-21 21:58:33 -05:00
rocky
15e3b44d63
Add meat to CI tag
2015-12-21 21:53:20 -05:00
rocky
db58a63e73
Use travis badge for now
2015-12-21 21:39:46 -05:00
rocky
ce3c653b40
Make README.rst reflect current situation better
2015-12-21 21:36:35 -05:00
rocky
6a49cd2c69
Bug in for loop with try. Add more of 2.7's COME_FROM statements.
...
spark.py: add tracing reduce rules. main: reduce cutsines.
Start history
2015-12-21 21:08:08 -05:00
rocky
6b0bb124ea
Start Python3 execption handling
2015-12-21 15:41:21 -05:00
rocky
d75083c9db
Regularize test names.
2015-12-21 12:34:19 -05:00
rocky
1456f820f2
Start Python3 slices. Split off token routine.
2015-12-21 12:17:57 -05:00
rocky
5dc3af3238
Start slice and build list on Python3. Do sanity check on marshal load
...
of code.
2015-12-21 06:41:02 -05:00
rocky
9cdcdfd305
Part of a much needed cleanup. Move semantics routines into its own
...
directory. Move out lots of stuff from __init__ to their own files.
Add file loading tests. Document AST handling a tad more complete.
2015-12-20 23:03:35 -05:00
rocky
6910e1b1b4
Python 3 decompilation from Python2
2015-12-20 18:18:40 -05:00