rocky
bf59e3c65e
Small variable name fix
2024-03-13 21:08:08 -04:00
rocky
628b18fce7
rename assembly phases and tweak a err msg...
...
before tokenization -> disassembly
after tokenization -> tokenization
2024-03-13 21:02:27 -04:00
rocky
454fac4adb
Handle 3.3 MAKE_FUNCTION annotation args properly
2024-02-11 11:50:25 -05:00
rocky
dd8ee1466d
Redo uncompyel6 options ...
...
Use click now and make more like decompyle3
2024-02-10 13:24:09 -05:00
rocky
e65a2db971
Small tweak
2024-02-03 18:40:38 -05:00
rocky
9f9074c285
Add a type annotation
2024-02-03 15:43:07 -05:00
rocky
5f29d14608
Fix --linemap option, yet again.
2024-02-03 15:08:58 -05:00
rocky
db6c7159f8
lint
2024-02-03 14:47:08 -05:00
rocky
d249c522a7
Fix up linemap option
2024-02-03 12:37:48 -05:00
rocky
dcc9d1a571
Fix spelling via "codespell"
2023-12-17 10:52:32 -05:00
rocky
227f494fa8
Double -a option show asm before tokenization
2023-07-04 07:13:54 -04:00
rocky
41d26bde79
Lint some files
2023-05-29 11:00:44 -04:00
rocky
4b2a2e218a
Misc lint stuff from pycharm...
...
that has been applied to decompyle3 already
2022-09-16 15:38:13 -04:00
rocky
464801bcb3
Correct type annotation on decompile()
...
Fixes #391
2022-04-21 20:10:33 -04:00
rocky
a381b4663b
Adapt for recent options changes in
...
-T option structure changed.
2022-01-09 16:01:32 -05:00
rocky
15761acd0d
Revise options processing. Sync with decompyle3
...
We should now handle passing assembly options or functions and
subroutines more properly.
The "%P" and "%p" specifiers now allow lists of nonterminals like "%c"
and "%C" do.
version was bumped because top-level main parameter args change slightly.
2022-01-09 04:11:09 -05:00
rocky
ea26084e6d
Modernize and sync with decompyle3 better
2021-10-25 09:13:47 -04:00
rocky
7387e5094b
More version tuple conversions
2021-10-23 15:54:14 -04:00
rocky
70b7e51df6
VERSION -> version
2020-10-31 11:25:06 -04:00
rocky
f62512dd65
Clarify a warning message
2020-07-19 20:36:18 -04:00
rocky
e3720515ae
Adjust for newer xdis
2020-06-21 20:20:25 -04:00
rocky
5a83c7c643
Simplify imports again using xdis 4.6.0
2020-05-19 00:53:53 -04:00
rocky
1d7e8f1617
Update to use xdis 4.4.0 ...
...
with more correct SipHash and other needed bug fixes.
2020-04-20 10:47:34 -04:00
rocky
869e48877c
Convert to use xdis 4.3.0 or greater
2020-04-16 08:41:53 -04:00
rocky
3dcc20f6d7
Small spelling typo...
...
Fixes #311
2020-04-04 02:38:32 -04:00
rocky
e80e72e6ab
ifelsestmt transform must object types more
2020-01-26 10:12:26 -05:00
rocky
cbd45a93ab
Warn about byte type when decompiling Python3 from Python2
2020-01-14 12:07:42 -05:00
rocky
ddffc2c078
blacken main.py
2019-12-23 04:44:40 -05:00
rocky
1ebfde6927
Add tree transformation phase...
...
if ... else if ... -> if ... elif ..
if .. : raise AsssertionError -> assert
Add options --tree=before --tree=after -T expanded to include this
This code ported from decompyle3. x0ret did all the heavy lifting.
2019-08-21 09:00:09 -04:00
x0ret
9db59f1b80
add support for generated source encoding
2019-05-27 17:19:10 +04:30
rocky
3b7f49c01d
Status area update and ...
...
Handle bytecode mismatch errors
2019-05-20 13:05:41 -04:00
rocky
7f65a8a6dd
3.8 SETUP_EXCEPT removal workaround; reinstate option -c | --compile
2019-04-11 07:19:35 -04:00
byehack
0c5f0dfc7a
support utf-8 in py3
2019-01-17 18:52:40 +03:30
byehack
138b2ac5ee
support utf-8 encoding for PYTHON>=3
2019-01-17 18:43:13 +03:30
byehack
ceae035c70
support utf-8 chars
2019-01-16 19:36:13 +03:30
rocky
1a70f75ffc
Pypy 2.7 fixes
...
* pypy doesn't seem to grok sys.stdout.flush() sometimes?
* pypy has extra come_froms for return_if_stmt
2019-01-05 13:28:29 -05:00
rocky
7de893730d
main.main parameter "codes" is not used. Note that.
2018-12-25 12:55:40 -05:00
rocky
1cb31a85fd
decompile bytecode_version defaults to Python intepreter version
...
Fixes #189
2018-09-19 15:20:23 -04:00
rocky
120412f5a8
Add Python 3.6 setcomp and another call bug
2018-04-01 07:09:24 -04:00
rocky
b8547346b7
Back off write "mode" setting to < 3.0
2018-03-21 00:25:41 -04:00
rocky
0aa7a7c223
Python code output should be binary...
...
as it may contain weird characters in strings. in 3.6 or so
r
2018-03-21 00:17:42 -04:00
rocky
b6d96929cb
Start simplifying higher-level API
2018-02-27 17:48:26 -05:00
rocky
c43c9a19aa
Move to GPL3 license
2018-02-27 06:40:36 -05:00
rocky
5c2d0484e5
3.6 MAKE_FUNCTION workarounds
...
Still wrong, but points to diretions for improvements
2018-02-26 09:10:00 -05:00
rocky
555a1235b2
Add fragment rules for RAISE_VARARGS and ...
...
Fix a fragment offset-sorting bug
2018-02-01 00:43:46 -05:00
rocky
0a12dfb422
Add uncompyle6 option to show fragments
2018-01-29 21:14:34 -05:00
rocky
fe51f72040
Small format typo
2018-01-27 11:50:47 -05:00
rocky
5e13077fd2
Possibly linemap improvements
2018-01-26 01:56:41 -05:00
rocky
cb27f244dc
Go over verification routines again
...
Add meager verify-run tests for those versions. More tests will follow
2018-01-24 06:20:38 -05:00
rocky
e193c72d12
Adjust linemap start offset
2018-01-23 11:44:05 -05:00