Commit Graph

3459 Commits

Author SHA1 Message Date
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
rocky
f913306070 Use github xdis...
So we pick up newer versions of Python 3.{7,8,9}.14 & 3.10.7
2022-09-16 19:03:00 -04:00
rocky
04df8a98fb uncompyle6.disasm -> uncompyle6.code_fns 2022-09-16 15:46:46 -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
4260deea11 Tidy ifelsemstmt check 2022-08-29 05:46:46 -04:00
R. Bernstein
200250df56
Merge pull request #406 from tangboxuan/master
Fix offset of extended argument instruction
2022-08-24 05:51:41 -04:00
rocky
765b0149ea iftstmt reduce rule for 2.6:
In ifsmt there can be a JUMP_ABSOLUTE right before the endif and a jump
the endif doesn't fall through to the place after the endif.
2022-08-24 05:33:22 -04:00
Bo Xuan
2f3b5e53d4
Add test case 2022-08-24 16:19:39 +08:00