rocky
836f3b5b78
define stmts_op for 2.6
...
used in a recently-added rule
2024-07-19 21:34:11 -04:00
rocky
1e993b9e59
Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7
2024-07-12 13:05:51 -04:00
rocky
a42bef12d2
Remove a false negative test for try/except in 25
2024-07-12 12:39:27 -04:00
rocky
01f306bd2c
Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7
2024-07-12 08:40:44 -04:00
rocky
be825239c6
2.6 custom tryelse code is no longer needed?
...
If it turns out to be needed, add it back in a better way.
2024-07-12 08:37:05 -04:00
rocky
967a44c587
Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7
2024-07-11 18:37:37 -04:00
rocky
6fe8a1d2ba
Address long-standing Python 2.6 try/except bug
...
Fixes #405
2024-07-11 14:01:50 -04:00
rocky
ebe0137b2d
Merge hell
2024-03-08 04:41:46 -05:00
rocky
3b1742e779
Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7
2024-03-08 04:41:40 -05:00
rocky
156188f8bb
withasstmt -> with_as
...
This matches Python's AST naamae better. Some linting and
sorting of dictionary keys done as well.
2024-03-08 04:10:33 -05:00
rocky
aadc66fe4a
Merge branch 'python-3.0-to-3.2' into python-2.4
2024-02-04 13:18:47 -05:00
rocky
dcc9d1a571
Fix spelling via "codespell"
2023-12-17 10:52:32 -05:00
rocky
4aa7f1ce67
Merge branch 'python-3.0-to-3.2' into python-2.4
2023-07-29 13:03:38 -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
c07814538c
Merge branch 'python-3.0-to-3.2' into python-2.4
2022-12-01 17:48:51 -05:00
rocky
e8d4d383c6
pycharm lint, isort & black
2022-12-01 17:36:00 -05:00
rocky
7e362a8635
Merge branch 'python-3.0-to-3.2' into python-2.4
2022-11-27 05:11:09 -05:00
James Hilliard
ab508e1ec9
Fix ImportError: cannot import name PYTHON_VERSION
2022-11-05 17:17:24 -04:00
rocky
17300f631f
Merge branch 'python-3.3-to-3.5' into python-2.4
2022-08-23 21:50:34 -04:00
rocky
71b1446c9c
Push reducechecks from 2.7 into 2.6
...
Some adaption is needed. These rules may also help earlier 2.x Python as well
2022-08-23 21:36:55 -04:00
rocky
dabc57a1fd
Merge branch 'python-3.3-to-3.5' into python-2.4
2022-08-23 17:24:52 -04:00
rocky
21b4d52a77
Correct 2.6 erroneous ifelse detection
2022-08-23 16:50:50 -04:00
rocky
5c29b9a5e5
remove \n in lambda; 2.6 grammar cleanup
2022-05-14 20:28:24 -04:00
rocky
14fe8c5356
some lambda's can't have \n + grammar cleanup
2022-05-14 20:25:33 -04:00
rocky
5f48a8bf2f
python-3.3-3.5 merge
2022-05-14 14:38:03 -04:00
rocky
0170e39f5d
Merge branch 'python-3.3-to-3.5' into python-2.4
2022-05-14 10:43:42 -04:00
rocky
eba0d37d0f
Improve Python 1.x decompiling
...
Still has bugs, but is much better.
2022-04-30 05:54:22 -04:00
rocky
3490389a66
Correct some Python 2.6 chain compare bugs
2022-03-05 04:03:27 -05:00
rocky
c5bc21bf6a
Correct some 2.6 bugs in chained compare ...
...
and other bugs
* main.py: was botching a version triple test
* parse2{5,6}.py: Add 2.6 try/except end position checking via COME_FROM offsets
* parse26.py: adjust grammar rule for chained-compare2
such as in try-except
2022-03-05 03:54:20 -05:00
rocky
3ab9272eb0
Merge branch 'python-3.3-to-3.5' into python-2.4
2022-01-03 22:10:47 -05:00
rocky
deea74b6a8
ret_expr -> return_expr
...
This matches Python's AST a little more closely
2022-01-03 21:56:07 -05:00
rocky
b5203a077d
Merge branch 'python-3.3-to-3.5' into python-2.4
2022-01-01 22:43:35 -05:00
rocky
3d5b6f4654
return_lambda -> return_expr_lambda
...
Except those places in 2.6ish code where it is simple a fancy RETURN_VALUE
2022-01-01 21:45:51 -05:00
rocky
5b657ac7d8
Merge branch 'python-3.3-to-3.5' into python-2.4
2021-10-23 08:42:32 -04:00
rocky
15efaffe8d
More Python version tuple comparison conversion
2021-10-16 11:41:22 -04:00
rocky
1a3bd3cabe
Merge branch 'master' into python-2.4
2020-09-05 06:02:41 -04:00
rocky
8879708da7
del_stmt -> delete to match Python AST better
2020-09-02 07:14:56 -04:00
rocky
68a145d050
Merge branch 'master' into python-2.4
2020-07-06 18:47:55 -04:00
rocky
815ae2c5cd
for/else detection for older 2.x Pythons
2020-07-06 18:38:14 -04:00
rocky
ef59b9c304
Forelse reduction checks on 2.6
2020-07-06 10:09:42 -04:00
rocky
d822017520
Add try/else reduction rule
2020-07-06 10:04:08 -04:00
rocky
084e183577
Add reduce check for 2.7 except_handler range
2020-07-05 22:18:07 -04:00
rocky
3dc6c31ae5
Fix bug in detecting 2.7 except-handler ranges
2020-07-05 22:11:37 -04:00
rocky
357f28dd89
Add "comp_if_not" for 2.6-
2020-06-27 11:16:47 -04:00
rocky
a616e1e1c7
"withstmt" -> "with" and fix async for
2020-04-01 09:48:34 -04:00
rocky
cb35ad906c
One more if_exp use (ret_cond)
2020-02-07 16:34:48 -05:00
rocky
278af38df6
conditional -> if_exp ...
...
to match Python IfExp AST
2020-02-07 16:17:47 -05:00
rocky
0677ddc8fb
Constrain ifelsestmt on 2.6 more.
2020-01-15 21:32:39 -05:00
rocky
3c2dafe74c
Fix a 2.6 bug found in pyenvlib testing
2020-01-14 22:30:48 -05:00