rocky
803678e9b4
Track recent xdis changes
2023-08-26 14:39:42 -04:00
rocky
20c58e2e2a
Small semantic action acceptance change
2023-08-26 14:15:23 -04:00
rocky
9829e04611
Bug in collection printing ...
...
`"%s" % value` can fail if value is a tuple
2023-08-17 19:35:08 -04:00
rocky
c0957d956f
Simpilfy grammar via ending_return
2023-08-13 07:50:13 -04:00
rocky
b3ddf95d7a
comprehension in lambda for 3.0 & 3.1
2023-08-12 07:12:10 -04:00
rocky
20af515dda
Handle comprehensions inside a lambda
2023-08-11 12:13:46 -04:00
rocky
8865599145
Fixes #467
2023-08-09 04:48:42 -04:00
rocky
3a178836a6
Fix a small default-value bug
2023-07-29 13:00:21 -04:00
rocky
ddeb5af6d6
compare_chained2 _> compare_chained_right
2023-07-29 12:09:25 -04:00
rocky
843e3585e2
chained-compare1 -> chained-compare-middle
2023-07-29 12:01:14 -04:00
rocky
227f494fa8
Double -a option show asm before tokenization
2023-07-04 07:13:54 -04:00
rocky
99f054ea9d
Forgot to include 3.3 in recent generator fix
2023-07-01 23:22:57 -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
828b1c989d
Fix fragment bugs
...
mostly with respect to show_ast handling
2023-06-29 15:56:53 -04:00
rocky
568b64b59e
Allow decompilation of older bytecode from 3.9+
2023-06-16 07:30:25 -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
41d26bde79
Lint some files
2023-05-29 11:00:44 -04:00
rocky
ebcc12e2c3
Misc lint things
2023-05-29 10:36:50 -04:00
rocky
c01ab5e001
Tweaks to long-literal handling...
...
* Use version tuple comparison for version testing
* small lintin of n_actions
* revise test so assert is not removed in 3.8
2023-04-19 02:08:36 -04:00
Andre Eberle
54776275c0
Modified n_actions.py to issue __repr__ on py2 and __str__ py3, should fix the extra quotes
2023-04-18 00:12:00 -04:00
Andre Eberle
3314c0d222
Fix to the ADD_VALUE_x opcodes
2023-04-17 18:53:51 -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
Andre Eberle
7f3c1fa3a4
Tentative fix for issue #437 . I added a new set of rules in ifelsestmt.py to check against for offsets. Seems to have fixed current issue. The result output is switching nested if-else-if-else-etc to a chain of if-elif-elif now, but semantically seems correct.
2023-04-08 16:54:55 -04:00
rocky
f76c35c902
Slightly nicer docstring detection for closure
2023-03-25 02:20:26 -04:00
rocky
82963cdf2c
Preserve docstring in closures..
...
This change synchronized from decompyle3
2023-03-24 20:31:49 -04:00
rocky
a20972dd12
xdis PYTHON_VERSION removal
2023-02-26 19:29:08 -05:00
rocky
41d1ba31f3
Synch with decompyle3 code a little bit
2023-01-19 04:31:19 -05:00
rocky
7c99564640
Reinstate pos_args in CALL_METHOD
2023-01-18 21:01:11 -05: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
2b3cd696db
3.0 set comprehension bug
2023-01-16 03:50:50 -05:00
rocky
50697bb79e
Improve set comprehension for Python 3.0
2023-01-16 03:40:55 -05:00
rocky
9a7eb0ad0a
try to be more honest about MAKE_{FUNCTION,CLOSURE}
2023-01-16 01:45:37 -05:00
rocky
154dabfcef
Handle Python 3.4 MAKE_CLOSURE fns ...
...
Is done just like Python 3.3
2023-01-14 09:54:48 -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
16914feb12
Get ready for release 3.9.0
2022-12-22 23:57:31 -05:00
rocky
e8d4d383c6
pycharm lint, isort & black
2022-12-01 17:36:00 -05:00
rocky
9f1514a2dd
Update copyrights
2022-11-27 05:18:45 -05:00
rocky
d1911d2487
More lint
2022-11-27 04:14:46 -05:00
rocky
55bb5640ee
More lint
2022-11-27 03:52:43 -05:00
rocky
514b0d0b0c
Sync from decompyle3
2022-11-06 01:24:28 -05:00
James Hilliard
e08324d85c
Replace remaining self.opc with token.opc
2022-11-05 19:39:31 -04:00
R. Bernstein
03282d3dd9
Merge pull request #418 from jameshilliard/fix-status-msg
...
Fix status_msg args
2022-11-05 19:23:35 -04:00
rocky
207dc0b506
opc field in while1 reduction is off of token...
...
not self (parse)
2022-11-05 19:20:16 -04:00
James Hilliard
6787a582cf
Fix status_msg args
...
Fixes:
uncompyle6/bin/uncompile.py", line 201, in main_bin
mess = status_msg(do_verify, *result)
TypeError: status_msg() takes 5 positional arguments but 6 were given
2022-11-05 18:59:13 -04:00
James Hilliard
ab508e1ec9
Fix ImportError: cannot import name PYTHON_VERSION
2022-11-05 17:17:24 -04:00
rocky
8843686b49
Add generator expression Python 3.0 .. 3.2
2022-11-05 10:31:00 -04:00