rocky
5079164db2
Add reduce check for aug_assign1
2020-07-07 09:54:57 -04:00
rocky
815ae2c5cd
for/else detection for older 2.x Pythons
2020-07-06 18:38:14 -04:00
rocky
54932d36fa
Small tweaks...
...
add-test.py: wasn't handling optimize correctly. Handle python version better
parse27.py: dyslexia
01_for_else_try_else.py: bug in found in 1.4 anydbm.py which we will
address soon
2020-07-06 18:19:06 -04:00
rocky
ef59b9c304
Forelse reduction checks on 2.6
2020-07-06 10:09:42 -04:00
rocky
084e183577
Add reduce check for 2.7 except_handler range
2020-07-05 22:18:07 -04:00
rocky
b21e8b8b57
Get ready for release 3.7.2
2020-06-27 23:08:46 -04:00
rocky
4007b8b702
Back off "or" check using instructions vs opcodes
2020-06-27 11:44:23 -04:00
rocky
598b58796d
Back off buggy "or" check
2020-06-27 11:33:46 -04:00
rocky
357f28dd89
Add "comp_if_not" for 2.6-
2020-06-27 11:16:47 -04:00
rocky
5cc572147a
Handle more ifelse reduction rules patterns
2020-06-27 09:10:48 -04:00
rocky
11be90758f
Workaround bug detecting MAKE_FUNCTION docstrings
2020-06-26 07:17:31 -04:00
rocky
e3720515ae
Adjust for newer xdis
2020-06-21 20:20:25 -04:00
rocky
2a8daca25d
Fix broken __doc__ transform yet again...
...
Hopefully by using first_child() we have something more robust now.
2020-06-17 10:12:56 -04:00
rocky
d357898bbf
Towards fixing a 3.8 try except-as bug
2020-06-15 06:03:28 -04:00
rocky
02f502c40a
New grammar rule often imples expanded reduce rule
2020-06-12 21:12:02 -04:00
rocky
de4fbb08f2
Get ready for release 3.7.1
2020-06-12 20:20:58 -04:00
rocky
e14675c2dc
Handle 3.7+ "else" branch removal...
...
As seen in _cmp() of python3.8/distutils/version.py with optimization -O2
2020-06-12 13:18:33 -04:00
rocky
7deeee8502
Push "with" grammar improvements back to 3.6
2020-06-04 05:53:21 -04:00
rocky
acdd025162
ast-check "for" is a loop; sync "withas" test ..
...
with decompyle3.
2020-06-04 05:34:19 -04:00
rocky
9acb3cf068
Fix bug in 3.8 with .. as
2020-06-04 05:24:22 -04:00
rocky
5a83c7c643
Simplify imports again using xdis 4.6.0
2020-05-19 00:53:53 -04:00
rocky
31db2f3e04
Small typo
2020-05-18 23:29:33 -04:00
rocky
7fa851765d
Regularize "or" so args are in 1..2 and ...
...
correct "return None" semantic action
2020-05-18 22:55:26 -04:00
rocky
d7c3b8454b
3.8 needs call_stmt -> call
...
Simplify/regularize how "return" works
2020-05-18 22:26:18 -04:00
rocky
3fb8d90407
Revise for xdis 3.6.0 ...
...
Simplify xdis imports where we can.
Blacken (most) of those buffers too
2020-05-18 21:49:16 -04:00
rocky
ff43565981
3.4-3.4 mixed "and"/"or" parsing ...
...
Fix by limiting more the bogus come from.
2020-05-18 05:33:57 -04:00
rocky
4365022f40
Adapt decompyle3's 3.8 try/return grammar rules
2020-05-17 10:18:10 -04:00
rocky
b94c649776
3.7 change rule to match op "or" expr's
2020-05-14 21:32:45 -04:00
rocky
81b704f597
Simpify an import, blacken a file.
2020-05-09 09:32:44 -04:00
rocky
5233a0716b
Correct wong class names in super()
2020-05-08 05:59:20 -04:00
rocky
a72163f6f9
lint
2020-04-30 18:00:04 -04:00
rocky
3e1300eb23
Bugs in nested async for...
...
* Generalize asyc_for rule
Fix bug in picking out comprehension iterator in async for
* fix bug in getting expression in such a comprehension
* Add %[n]{%x} pattern to template_engine()
2020-04-29 10:12:54 -04:00
rocky
302a5d53d4
Get ready for release 3.6.7
2020-04-27 22:52:39 -04:00
rocky
9e193fd7cb
Track branch changes in xdis
2020-04-21 22:42:57 -04:00
rocky
ab6b12be56
Small fixes in fragment parser
2020-04-21 19:58:03 -04:00
rocky
5bd97aa756
lint
2020-04-21 13:49:05 -04:00
rocky
5237d704fa
Remove stray debug stmt
2020-04-20 23:13:06 -04:00
rocky
a01285e4a9
Get ready for release 3.6.6
2020-04-20 22:23:58 -04:00
rocky
1d7e8f1617
Update to use xdis 4.4.0 ...
...
with more correct SipHash and other needed bug fixes.
2020-04-20 10:47:34 -04:00
rocky
dc7f1ed0cc
Final remnants of xdis fixes?
...
Restore the last of the excluded bytecode.
2020-04-18 23:24:56 -04:00
rocky
e2baccb4e5
Reinstate 3.5 tests
2020-04-18 23:18:24 -04:00
rocky
999eee4b5f
More xdis upgrade fixes...
...
LOAD_CONST of unicode in 2.7- is the same thing as LOAD_STR.
I guess previously there was no unicode.
2020-04-18 22:26:24 -04:00
rocky
9ca94717e0
Yet another workaround
2020-04-18 19:53:04 -04:00
rocky
b77efec36c
git commit -m'Adjust "or" offset check ...
...
for Python < 3.6 hopefully it doesn't break Python 3.6+
2020-04-18 19:21:59 -04:00
rocky
17d07eaf00
continuing xdis refactor aftermath...
...
Both 2.7 bytecode broken from the refactor have now been reinstated, but
two 3.5 and 3.6 bytecode have moved into the "todo" category.
2020-04-18 18:47:06 -04:00
rocky
538c2e7efd
More regressions with some fixes
2020-04-17 00:06:39 -04:00
rocky
4796fb9e70
"or" rule regularization + regressions from xdis
2020-04-16 23:45:39 -04:00
rocky
2fd61b1016
Add 3.7ish "or" check
2020-04-16 16:35:27 -04:00
rocky
badfe5456f
Track "or" grammar changes...
...
Remove re deprecation warning
2020-04-16 15:25:42 -04:00
rocky
f117feb585
Use new xdis...
...
Sadly there are some regressions that need to be fixed.
Deal with later.
2020-04-16 11:01:12 -04:00