rocky
4ac5564df3
Don't remove LOAD_CONST RETURN_VALUE when...
...
the LOAD_CONST has a non-None value, or the LOAD_CONST
has a line associated with it.
2024-11-28 07:27:13 -05:00
rocky
915ff5e59c
Remove pre 3.5 BUILD_MAP customiztion...
...
it is not needed here.
2024-07-15 13:53:36 -04:00
rocky
81922bdb23
Handle long dict litereals in 3.4- better...
...
Bracket in pseudo op COLLECTION_START ... BUILD_xx
2024-07-15 10:01:32 -04:00
rocky
d731d32c11
Simplify BREAK_LOOP detection...
...
by making more us of linestart. At least for now...
2024-07-14 14:45:25 -04:00
rocky
0627215e98
BUILD_MAP is different pre 3.5
2024-07-13 09:51:49 -04:00
rocky
b28f3058fc
Expand grammar check for ifelse continue for 2.7
2024-07-12 21:30:46 -04:00
rocky
cb2b90a94f
Python 2.5 try/except reduce fix
...
Start getting aligner up to date
2024-07-12 14:15:04 -04:00
rocky
b0b67e9f34
Fix some 2.6 bytecode bugs
...
scanner26: disassemble interface has changed
make_function2: was missing ParserError2 import
2024-07-11 12:06:52 -04:00
rocky
bec88e4aaa
Name phases "disassembly" and "tokenization"
2024-03-14 15:31:53 -04:00
rocky
b88af23406
Mis spelling corrections
2024-03-14 05:39:30 -04:00
rocky
daf54d2740
2.6 scanner show -A headers now
2024-03-13 21:39:35 -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
830a2ebf44
Sync with decompyle3
2024-03-02 04:32:26 -05:00
rocky
2b8406e7a8
mark "psuedo ops"
2024-02-25 06:08:06 -05:00
rocky
8a1fd7e127
Keep optype info in token...
...
It is useful for ADD_VALUE
2024-02-24 17:41:32 -05:00
rocky
5a367717fa
Merge hell
2024-02-24 10:14:31 -05:00
rocky
1ef631dd76
Track change in xdis Instruction ...
...
we now need to set positions which will be used in newer Pythons.
2024-02-18 21:13:30 -05:00
rocky
3e00880c1b
remove double-quote preference here....
...
it is now done in xdis which is where it is better done
2024-02-18 08:21:07 -05:00
rocky
0a08b8d3fc
Simplify double quote preference in string
2024-02-17 19:46:57 -05:00
rocky
3ef4ab4944
Prefer using double quote for strings
2024-02-17 12:57:48 -05:00
rocky
2886d2bd08
Track important changes to xdis
...
Annotation counts have changed.
EXTENDED_ARGS adjustment in instructions have been corrected.
2024-02-11 23:24:19 -05:00
rocky
8348d86b09
Better annotation parsing for < 3.6
2024-02-11 19:46:13 -05:00
rocky
454fac4adb
Handle 3.3 MAKE_FUNCTION annotation args properly
2024-02-11 11:50:25 -05:00
rocky
dcc9d1a571
Fix spelling via "codespell"
2023-12-17 10:52:32 -05:00
rocky
0ea75cadca
Small bit of linting
2023-10-06 02:44:41 -04:00
rocky
803678e9b4
Track recent xdis changes
2023-08-26 14:39:42 -04:00
rocky
227f494fa8
Double -a option show asm before tokenization
2023-07-04 07:13:54 -04:00
rocky
d6608712f1
correct fn name on older 3.x cross decompile...
...
Also black, lint, and isort some
2023-06-30 20:30:06 -04:00
rocky
4b296e1ead
Correct generator function parsing for 3.3..3.5
2023-06-30 15:43:27 -04:00
rocky
36f00d334e
Revert last change.
2023-06-16 07:10:37 -04:00
rocky
b0086460de
Exit when version is not supported
2023-06-15 21:32:17 -04:00
rocky
7ad0c37c62
Correct a couple of bugs...
...
We weren't distinguising relative imports from absolute imports.
Fixes #444
Picking out docstring was broken too.
2023-04-17 16:35:27 -04:00
rocky
ad00b9a4ee
Use xdis pattr extraction for LOAD_NAME
2023-04-15 07:31:35 -04:00
rocky
931abc5726
self.opc.version -> self.opc.version_tuple
...
The next release of xdis will no longer support self.opc.version (a
float value which doesn't work in the presense of 3.10 and above)
2023-01-18 17:08:39 -05:00
rocky
9a7eb0ad0a
try to be more honest about MAKE_{FUNCTION,CLOSURE}
2023-01-16 01:45:37 -05:00
rocky
42d26ccbd7
Bump version
2023-01-14 06:21:12 -05:00
rocky
090570cd34
3.4-3.5 MAKE_CLOSURE with annotate
...
Docs lie about annnotation args. Slight adjustment here.
More is probably needed.
2023-01-14 02:20:59 -05:00
rocky
e8d4d383c6
pycharm lint, isort & black
2022-12-01 17:36:00 -05:00
rocky
9ecdf12667
Some small typos and lint
2022-11-03 12:27:55 -04:00
rocky
f9aa2410d1
More float -> tuple version corrections
2022-11-03 12:20:10 -04:00
rocky
d6dcaff240
Fixes #414
2022-11-03 12:02:34 -04:00
rocky
62760eb556
Deal with 2.x EXTENDED_ARGS on JUMP_ABSOLUTE
...
in scanner2's "continue" detection
Fixes #310
2022-09-18 21:12:27 -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
8f7f0be7fa
Administrivia
...
Workflows CI: go back to released versions rather than github versions
pyenv-newest-versions: updaed to use newest Python releases
pypy38.py: fix wrong package name import
3.6-exclude.sh: update and advance
2022-05-20 06:44:20 -04:00
rocky
656a9aa290
Bugs in 2.x relative import '.' and 1.x bytecode
2022-05-14 17:46:48 -04:00
rocky
223804ac1f
semi-black scanner26.py
2022-05-14 09:51:50 -04:00
rocky
3a9fa652b4
Partial sync of 3.7 & 3.8 scanner with decompyle3
2022-05-14 08:42:04 -04:00
rocky
cca015c5d6
Use LOAD_ARG in 3.6
2022-05-06 12:53:55 -04:00
rocky
f5043408ec
Start rolling in LOAD_ARG for 3.7+
2022-05-06 02:41:02 -04:00
rocky
9aba1cc3af
Bytecode 1.x fixes
2022-04-30 20:36:43 -04:00