Commit Graph

348 Commits

Author SHA1 Message Date
rocky
2927921856 Python 3 class deparsing. stop earlier in uncompyle6 on a syntax error. 2016-01-02 05:38:22 -05:00
rocky
cd480c8670 Fix make_closure compilation from 2.x of 3.3 bytecode 2016-01-01 22:17:53 -05:00
rocky
7d42329c31 Work on MAKE_CLOSURE rules for Python 3.3 2016-01-01 21:55:14 -05:00
rocky
b89177d234 track source deparsing superclass bug fix 2015-12-31 15:24:24 -05:00
rocky
31691b2003 Get ready for release 2.1.2 release-2.1.2 2015-12-31 11:47:21 -05:00
rocky
09ef875b3e Remove tests we will never use 2015-12-31 11:37:06 -05:00
rocky
0129c3a16e Try travis testing on Python 3.5. Fix up Makefile to avoid pytest on 3.5
for now
2015-12-31 11:19:46 -05:00
rocky
4d5a3bc449 Add a few tests from Python 2.7 standard library 2015-12-31 10:57:59 -05:00
rocky
8d90e33832 Handle Python 3.3 > dotted class names 2015-12-31 10:56:12 -05:00
rocky
0533bbb758 Note Python 3.5 2015-12-30 23:48:27 -05:00
rocky
b82a8b90d5 Allow Python 3.5 to decomplyle other versions. No Python 3.5
bytecode support just yet though.
2015-12-30 23:46:29 -05:00
rocky
d3a32b6877 Show details on parsing assert failures. 2015-12-30 23:17:57 -05:00
rocky
21e51004ae Remove accidental schmutz. Try using pattr on 3.4 to get fn names 2015-12-30 20:18:20 -05:00
rocky
d5b023aec4 Parses another variation of Python3 try/except. Reinstate some tests 2015-12-30 19:05:58 -05:00
rocky
e50bebb7c8 Reinstate list comprehension test. I think we've found/fixed the
initialization bug.
2015-12-30 18:51:22 -05:00
rocky
2e91de8355 Start using our replacement for inspect.iscode 2015-12-30 18:44:27 -05:00
rocky
5bbe2c4a45 Doc changes. 2015-12-30 18:20:50 -05:00
rocky
6ffd2fca90 document GenericASTTraversal.preorder and default. 2015-12-30 17:27:45 -05:00
rocky
b3ede4b64b Walker->SourceWalker Traverser->FragmentsWalker 2015-12-30 17:04:18 -05:00
rocky
1785113045 Tidy parse3 grammer a little 2015-12-30 10:26:07 -05:00
rocky
657eeb7de8 Towards Python3 getting try/except working more often. 2015-12-30 09:46:52 -05:00
rocky
313a8578b3 Fix another cross-version bug: eliminate version-specific library 'dis'
and use corresponding version-indepent routine instead.
2015-12-29 22:23:50 -05:00
rocky
a30f3625ac Fix Python 2 cross deparsing pythond bytecode tuples co_consts,
co_names, co_varnames. Reinstate cross Python 2-3 uncompiling
2015-12-29 22:11:45 -05:00
rocky
e17d94f28f Syntax error typo 2015-12-29 17:35:49 -05:00
rocky
16af79f042 Make sure internObjects is (re)initialized 2015-12-29 17:33:54 -05:00
rocky
116263dd8c inspect.iscode -> hasattr for now until we write a cross-version iscode 2015-12-29 17:05:48 -05:00
rocky
34841abe14 scanner3: Python 2.6 compatibility: change set initializations. Get rid
of * import
opcode_*: only a little of the much-needed larger cleanup
Makefile: remove 3.x bytecode checking from Python 2.x for now. DRY
Makefile a little bit (but more is needed)
2015-12-29 08:30:49 -05:00
rocky
226f3c7e63 Python 2.6.9 compatibility 2015-12-28 23:55:03 -05:00
rocky
f77c4b53c4 Marshal loading of = >python 3.4 from Python < 3.4 2015-12-28 14:56:53 -05:00
rocky
6f0a252693 Add Python3 marshal codes and start to handle cross-version Python code
object types, introducing scan.Code3
2015-12-28 14:17:28 -05:00
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