rocky
eefbc40eef
option to show asm and DRY.
...
Get ready for some 2.3 support
2016-06-03 09:25:20 -04:00
rocky
6bdddb6a58
For Python 3.3 verification
...
README.rst: reflow paragraph
2016-06-03 04:33:58 -04:00
rocky
3da4c9ce77
Start custom grammar for 2.6 and ...
...
fix a python 2.6.9 deparse with lc if+and+not
2016-06-02 19:16:27 -04:00
rocky
167f5af5e6
Misc refactorings
2016-06-02 16:58:42 -04:00
rocky
3bd41b68ec
Remove things we don't do here anymore.
...
For those other things see xdis.
2016-06-01 13:51:08 -04:00
R. Bernstein
5f6314d757
Merge pull request #23 from rocky/diagnostics-to-stream
...
Diagnostics to stream
2016-06-01 08:24:00 -04:00
rocky
a9809e332b
asm should format tokens
2016-06-01 08:19:33 -04:00
Daniel Bradburn
b3182e804d
showasm and showast now accept file like objects which are used for writing the the asm or ast to.
2016-06-01 10:02:04 +02:00
Daniel Bradburn
52731bb5cd
showasm and showast now accept file like objects which are used for writing the the asm or ast to.
2016-06-01 10:01:39 +02:00
R. Bernstein
e3ef9c1724
Merge pull request #22 from rocky/xdis-load
...
Xdis load
2016-05-31 20:09:12 -04:00
rocky
70c6ee946c
Work around lack of JUMP_OPs in xdis 1.1.0
2016-05-31 20:03:28 -04:00
rocky
20768266b4
use totally xdis's opcodes
...
Needs xdis 1.1.0 or greater
2016-05-31 19:53:17 -04:00
rocky
3e5876dd03
Back of some of the last disasm changes
...
Was failing test_disasm and I don't want to deal with that now.
Add more 2.7 bytecode tests
2016-05-30 00:23:51 -04:00
rocky
07d49d0f5b
Merge branch 'xdis-load' of github.com:rocky/python-uncompyle6 into xdis-load
2016-05-29 23:52:39 -04:00
rocky
08790ab0ab
Make use of xdis routines in disassembly
2016-05-29 23:02:31 -04:00
rocky
69bb74c86e
DRY scanner25 and scanner26 more
2016-05-29 22:18:36 -04:00
rocky
ead41d7a96
Bang again on Python 2.5 and 2.6 scanners
2016-05-29 19:13:57 -04:00
rocky
bb2e9c0d31
bang on scanner2{5,6}
2016-05-29 18:44:07 -04:00
rocky
58fd0f7fe5
Start to DRY 2.6 scanner
...
Note: can't use xdis 2.6 opcode until another xdis release.
2016-05-29 05:05:48 -04:00
rocky
cd7ccdc872
Remove use of 2.7 globals by using self.opc
2016-05-29 04:00:43 -04:00
rocky
b60f62d529
Merge branch 'xdis-load' of github.com:rocky/python-uncompyle6 into xdis-load
2016-05-28 21:47:52 -04:00
rocky
e70e7bfc16
Start to DRY Python 2 scanners...
...
Get 2.7 opcodes from xdis.
2016-05-28 19:34:12 -04:00
rocky
90741148ad
DRY scanners more
2016-05-28 17:07:43 -04:00
rocky
a984ae4f6a
Fix bug in 3x list comprehensions with ifnot
2016-05-28 12:13:46 -04:00
rocky
fca233419f
Remove dis3. Fix in 3.x list if not comprehension
2016-05-28 12:05:38 -04:00
rocky
bebd85f5e1
One more Python 3 opcode to remove
2016-05-28 01:58:34 -04:00
rocky
0a64c478c3
Remove dup 3.x opcodes
2016-05-28 01:54:04 -04:00
rocky
949b9b504e
Nuke Travis 3.2 and 3.3 testing for now
2016-05-28 01:16:25 -04:00
rocky
b18b3e5d47
xdis for Python 3 opcodes
2016-05-28 01:14:18 -04:00
rocky
64191aa2d3
use xdis 3.4-3.5 opcodes
2016-05-28 00:58:27 -04:00
rocky
8e2c6aaa96
More travis versions
2016-05-27 19:24:39 -04:00
rocky
4398b5b2e0
Use xdis for code, magics, and marshal
2016-05-27 19:18:06 -04:00
rocky
eebe8249a8
Merge branch 'master' of github.com:rocky/python-uncompyle6
2016-05-25 20:08:37 -04:00
rocky
b6a0c5a704
Remove bytecode that doesn't exist on CircleCI
2016-05-25 20:08:12 -04:00
R. Bernstein
450d103760
Merge pull request #21 from rocky/fragments-state-fix
...
Fixed bug in pysource / fragments where the use of deparse_code from …
2016-05-25 19:00:33 -04:00
Daniel Bradburn
ebee84228b
Fixed bug in pysource / fragments where the use of deparse_code from fragments could break subsequent calls to deparse_code from pysource due to amending to the global TABLE_DIRECT.
2016-05-25 20:48:35 +02:00
rocky
79593d6ef1
Small change
...
0 shouldn't be used as False.
2016-05-24 12:38:44 -04:00
rocky
79f4893cd9
final RETURN removal bug
...
We want to remove a final return from a module, but otherwise not.
Note we'll no lonager be able to verify functools.pyc as there
is now a return after a raise statement. That will have to be
delt with separately.
May address Issue #17 .
2016-05-23 22:41:46 -04:00
rocky
544cb334e8
pydisassemble is in pyxdis now
...
Some small ReST tag fixes
2016-05-22 18:12:42 -04:00
Daniel Bradburn
fd9ecdecc7
Excluding experimental branch from travis ci
2016-05-22 01:03:59 +02:00
Daniel Bradburn
bec66bfb44
Excluding experimental branch from travis ci
2016-05-22 00:52:28 +02:00
Daniel Bradburn
913decaaec
Merge pull request #16 from rocky/multi-gen--bug-3.5
...
Fix 3.x generator bug...
2016-05-21 20:40:17 +02:00
rocky
b6e7f365c5
Remove the JUMP_ABSOLUTE in comp_for altogether
...
Supposition is this was added as a result of a bug in my code from
earlier.
If we find we need it, we'll add it back again.
2016-05-21 05:45:56 -04:00
rocky
09f6286bec
Fix 3.x generator bug...
...
found by Daniel Brandburn. See
af61622960
2016-05-21 05:09:27 -04:00
rocky
95bc1a76cb
Check Python version in uncompile.py
...
Seems this is the only place that uses that.
2016-05-21 04:37:21 -04:00
rocky
207edbd53d
Small changes
...
test_pyenvlib.py: cleanup code a little
uncompyle6/main.py: more explicit decompile msg
2016-05-20 22:19:17 -04:00
rocky
68ff878b3e
Small pyflakes stuff
2016-05-20 21:37:46 -04:00
rocky
f834b46b84
Fragment fixes
...
fragments.py:
* Use "%x" specifier if for iterators
* Add '%D' interpretation
pysource.py:
TABLE_DIRECT can get messed up from running fragments
duplicate "%x" specifier to igore fragment stuff
2016-05-20 06:18:41 -04:00
rocky
6956e88e0e
Small changes and administrivia
2016-05-19 08:40:20 -04:00
rocky
1121ff2456
Handle marshal frozenset
2016-05-18 17:01:40 -04:00