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
R. Bernstein
b6aa58790f
Merge pull request #446 from rocky/do-not-quote-non-str-args
...
Use xdis pattr extraction for LOAD_NAME
2023-04-16 15:47:53 -04:00
rocky
ad00b9a4ee
Use xdis pattr extraction for LOAD_NAME
2023-04-15 07:31:35 -04:00
rocky
551e428086
Go over stdlib test for 2.{6,7}
2023-04-08 22:10:21 -04:00
R. Bernstein
cd0049933f
Merge pull request #440 from andrem-eberle/master
...
Tentative fix for issue #437 .
2023-04-08 20:37:31 -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
18b5934b2d
Allow xdis 6.1.0
2023-02-26 19:21:30 -05:00
R. Bernstein
982abe0980
Merge pull request #430 from rocky/sync-with-decompyle3
...
Synch with decompyle3 code a little bit
2023-01-19 05:10:20 -05:00
rocky
41d1ba31f3
Synch with decompyle3 code a little bit
2023-01-19 04:31:19 -05:00
rocky
e03f4cfe43
Try adding no blank templates
2023-01-18 22:23:06 -05:00
R. Bernstein
53a5e03a8f
Merge pull request #429 from rocky/reinstate-pos-args
...
Reinstate pos_args in CALL_METHOD
2023-01-18 21:23:23 -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
R. Bernstein
137dd64a46
Merge pull request #427 from rocky/make-fn-or-closure-with-annotatation
...
try to be more honest about MAKE_{FUNCTION,CLOSURE}
2023-01-16 02:12:13 -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
73a4c0be78
Use 3.7.16 for master version
2023-01-14 02:49:43 -05:00
rocky
92830c2eae
Newer setuptools
2023-01-14 02:22:53 -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
1ffc58ac6d
Bump list of newest versions
2022-12-22 22:44:30 -05:00
rocky
77bbe49c32
Change Python versions used in testing
...
to match what works on workflows CI
2022-12-20 10:27:11 -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
6110b3a095
Add isort configuration
2022-11-27 04:50:27 -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
cab53b49b5
Small grammar and spelling errors
2022-11-27 03:25:55 -05:00
rocky
514b0d0b0c
Sync from decompyle3
2022-11-06 01:24:28 -05:00
R. Bernstein
283e493270
Merge pull request #419 from jameshilliard/token-opc
...
Replace remaining self.opc with token.opc
2022-11-05 20:59:47 -04: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
R. Bernstein
647df7140c
Merge pull request #416 from jameshilliard/fix-parsers-version
...
Fix ImportError: cannot import name PYTHON_VERSION
2022-11-05 18:35:30 -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
rocky
9d1cf50c5e
Add generator expression Python 3.0 .. 3.2
2022-11-05 10:15:45 -04:00
rocky
98626ee162
Misc linting
2022-11-05 05:04:25 -04:00
R. Bernstein
2884068c61
Merge pull request #415 from jameshilliard/parsererror2
...
Add missing ParserError2 in make_functions36
2022-11-05 01:09:05 -04:00
rocky
57d2386cc3
Fix another 3.0 list comprehension parse
2022-11-05 00:27:05 -04:00
James Hilliard
ce66b12176
Add missing ParserError2 in make_functions36
2022-11-04 23:42:28 -04:00
rocky
f59d0bf306
Misc lint
2022-11-04 03:54:01 -04:00
rocky
4959c76694
More 3.0 list comprehension bug fixes
2022-11-04 02:05:34 -04:00