Commit Graph

85 Commits

Author SHA1 Message Date
rocky
683c75d37e Split out marhsal and disassemble code and spell disassemble correctly.
Fix some lint issues
2015-12-15 12:10:03 -05:00
R. Bernstein
237f6731d9 Update README.rst 2015-12-15 02:18:12 -05:00
R. Bernstein
bf244ebe1a Update README.rst 2015-12-15 02:06:21 -05:00
rocky
34ecd54e2c README.rst: note addition of pydisassemble
Remove duplicate disassembly printing from scanners and
put common code in caller(s). Show source-code line numbers in disassembly output
and fix alignment of byte offsets.
disas.py: workaround Python 2/3 different layouts before we get to
bytecodes in a code object.
2015-12-15 01:42:07 -05:00
rocky
5e5da104c5 Disable installing pydisassemble for now pending understanding what's up with CI 2015-12-14 22:30:10 -05:00
rocky
77b7286f34 Package scripts correctly now 2015-12-14 22:18:26 -05:00
rocky
3ae048ef4d scripts->bin. Add pydisassemble to list of scripts to install 2015-12-14 22:12:54 -05:00
rocky
ae42f61ef0 Add a standalone disassemble utility. __init__.py: Shun using 0, 1 for booleans 2015-12-14 22:01:58 -05:00
rocky
2d5191ba67 Typos 2015-12-14 16:23:13 -05:00
rocky
a7455a3801 Start to move deparser from python-deparse here. Start Python 3.2 tolerance 2015-12-14 16:18:56 -05:00
rocky
f877086d81 Clean up travis file now that I know what works 2015-12-14 15:37:57 -05:00
rocky
0b3a8047ff Travis: try install a different way 2015-12-14 15:34:01 -05:00
rocky
e50d8d9d24 Do setup install on CI boxes 2015-12-14 15:30:35 -05:00
rocky
551397e969 A correct way to set a circleci envvar? 2015-12-14 15:18:56 -05:00
rocky
ce337e5ec0 Add --compile to cicleci build 2015-12-14 15:14:52 -05:00
rocky
718bf67a00 Try circleci 2015-12-14 15:13:05 -05:00
rocky
a04a9ec294 uncompyle6/dparser -> uncompyle6/parser 2015-12-14 15:01:57 -05:00
rocky
3e31f41552 Closer to being able to handle Python 3.4 bytecode. Loading of Python
Python bytecode now works. magics from 3.3 to Python 3.4 has been added.
Some Python 3.4 scanner issues have been fixed.
2015-12-14 14:55:32 -05:00
rocky
b5797dfa0f Move scanners in its own directory. Dir base-tests -> base_tests so we
can import from that.
2015-12-14 09:38:46 -05:00
rocky
f595f659ad Python3 compatibility: (disas, scanner*)
Reduce useless verbiage in status messages and DRY code a little;
__init__, uncompyle6
2015-12-14 08:38:51 -05:00
rocky
232b5fe70e Make sure we pass return code back. 2015-12-13 22:58:20 -05:00
rocky
4019b4a946 Add Python version and tidy up stats output: don't show verify stats if we didn't verify! 2015-12-13 19:36:56 -05:00
rocky
87b8a9bb06 Correct testing python version check 2015-12-13 18:55:44 -05:00
rocky
48df0cfc4c Force 2.7 bytecode compilation on Travis 2015-12-13 18:48:17 -05:00
rocky
94bb5ae541 Try Travis 2015-12-13 18:45:44 -05:00
rocky
14815b3d8c test_pythonlib: Fix bug in traversing directores
walker.py: imports; Add test Python2.5 bytecode - it works!
Makefile: remove temporary directories and _dis files which were added by mistake
2015-12-13 18:39:33 -05:00
rocky
501060f87f need disas.py for cross version Python compiling
fixup MANIFEST.in
pythonlib.py: store expected python version and don't compile if it
mismatches. Work files now go in temp directory. Start masrhal load in
Python for Python3.
2015-12-13 10:31:05 -05:00
rocky
379aeb8813 add a single Python 2.6 source/code test 2015-12-13 05:23:28 -05:00
rocky
24c301c489 Start off with Anton Vorobyov's (DarkFenX) Python 3 scanner. 2015-12-13 03:41:57 -05:00
rocky
d71164df7f Correct MANIFEST->MANIFEST.in more lint 2015-12-13 02:28:05 -05:00
R. Bernstein
5d08526558 Update README.rst 2015-12-13 02:09:21 -05:00
R. Bernstein
7360ec7b43 Update README.rst 2015-12-13 02:05:37 -05:00
rocky
0af587064a Make uncompyle6 run on Python3.4 and Python 2.7
We don't need our own disassembler. Python's will do fine
2015-12-13 01:59:32 -05:00
R. Bernstein
6c2b9f3801 Update README.rst 2015-12-13 00:57:04 -05:00
R. Bernstein
3d720238e5 rSt formatting 2015-12-13 00:55:28 -05:00
rocky
3d4e23cc9c Add tests and start a more turnkey testing system. 2015-12-13 00:45:54 -05:00
rocky
832debeb70 Minimal disassemble, ast compile and deparse work on Python 3.
Some linting
2015-12-12 13:22:44 -05:00
rocky
87a3bf1935 parser -> dparser so as not to conflict with python3's parser. 2015-12-12 08:44:21 -05:00
rocky
003d485814 More Python3 compatability. Remove duplicate disassembly code and
get it from Python's standard library instead.
2015-12-12 08:37:20 -05:00
rocky
00d17461fc Python3 compatibility 2015-12-12 06:43:15 -05:00
rocky
bc1c1d6a67 python3 compatibiity and remove some flake8 warnings. 2015-12-11 19:27:29 -05:00
rocky
39842cef1f Lint stuff 2015-12-11 18:49:23 -05:00
rocky
b3c8cbb83f More python2 -> python3 compatibility 2015-12-11 18:14:47 -05:00
rocky
d3c732298c Start process of making python3 compatible 2015-12-11 13:44:23 -05:00
rocky
365cdfc941 First steps to find-offset-based routine 2015-11-25 21:39:04 -05:00
Mysterie
d7fdf678c1 Merge pull request #27 from kernelsmith/master
call python via /usr/bin/env python to make script more portable
2015-06-25 12:37:09 +02:00
Josh
ef0f83232f call python via /usr/bin/env python =more portable
The shebang line of the uncompyle2 script is not using /usr/bin/env python causing it to fail to run when invoked as a standalone script

```Shell
uncompyle2# ./scripts/uncompyle2 -h
bash: ./scripts/uncompyle2: python: bad interpreter: No such file or directory
```
Changing the shebang line to #!/usr/bin/env python fixes the problem and is best practice (or so I'm told)

```Shell
uncompyle2# ./scripts/uncompyle2 -h

Usage: uncompyle2 [OPTIONS]... [ FILE | DIR]...
...snip...
```
2015-06-23 15:55:55 -05:00
Mysterie
3fb1b851ea Merge pull request #23 from jbremer/master
support hardcoded 64-bit integers (sorry, so late lol)
2014-11-26 23:43:34 +01:00
Jurriaan Bremer
27bdb7c650 support hardcoded 64-bit integers 2014-11-08 12:30:48 +01:00
root
4bd5f9d081 Fix Raise TODO + NOP opcode 2014-02-12 21:37:49 +01:00