Commit Graph

3266 Commits

Author SHA1 Message Date
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
rocky
766618ba48 Alow 3.0 setup 2022-11-04 00:53:45 -04:00
rocky
0be3fc657b Sync with 3.3-3.5 branch 2022-11-04 00:49:24 -04:00
rocky
d0a98bdbc6 Correct 3.0 list comprehension parsing 2022-11-04 00:42:50 -04: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
5b3ea47bac Correct long-literals for Python 2.7 2022-10-16 19:33:51 -04:00
rocky
bb9b9fb4b3 Improve "if/else" in "for" test 2022-10-16 18:24:48 -04:00
rocky
1819fc8944 ifelsetmt - jump back is only allowed inside loops 2022-10-16 17:50:58 -04:00
R. Bernstein
8e6a0b01fa
Merge pull request #413 from Berbe/for-loop
Fix: CONTINUE in else block in a for loop
2022-10-16 17:46:26 -04:00
Berbe
512c500810
Add: Tests: CONTINUE in else block in a for loop 2022-10-10 20:33:19 +02:00
rocky
976705fc0a
Add: Python 2.7: ifelsestmtc 2022-10-10 04:30:48 +02:00
rocky
ae46ccf6d3 Go over 2.7 stdlib exclusions 2022-09-30 20:09:41 -04:00
rocky
a1cc0aab37 Move test: all() not in 2.4 2022-09-30 03:45:24 -04:00
rocky
0c7427069e strings need quotes in ADD_VALUE instructions 2022-09-30 03:33:47 -04:00
rocky
2264ccb1d5 A partial reduce-action sync with decompyle3
Start us add _check prefixes and _invalid to the end of check methods
2022-09-30 02:45:52 -04:00
rocky
3bd3029169 Confused == with = 2022-09-29 20:08:07 -04:00
rocky
ad1fa98870 Detect Python 2.7 weird "for-block" bytecode
It has an unnecessary JUMP_ABSOLUTE to a JUMP_LOOP

Fixes #408
2022-09-27 08:58:35 -04:00
rocky
8c85260852 Lint-like changes from VSCode
Also allow 3.11 to run this
2022-09-21 08:29:06 -04:00
rocky
62b816c60b Correct a signature return 2022-09-21 02:08:08 -04:00
rocky
d0f173a620 Lint from pycharm 2022-09-21 01:53:56 -04:00
rocky
7c3aff19af "async for"s can has pass blocks 2022-09-21 00:27:40 -04:00
rocky
be9af85e16 Hande Python 3.5 make_function() semantic action
Fixes #409
2022-09-21 00:19:37 -04:00
rocky
6c116fe4f9 Bump default master Python version 2022-09-20 17:35:33 -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
600688a65d Sync with decompyle3 2022-09-17 10:54:09 -04:00
rocky
a68f440d6f Sync with decompyle3
Better PyPy 3.7 tolerance
2022-09-17 01:59:42 -04:00