You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
3.7 "if" body tweak .
This commit is contained in:
@@ -120,6 +120,7 @@ SKIP_TESTS=(
|
|||||||
[test_types.py]=1 # parse error
|
[test_types.py]=1 # parse error
|
||||||
[test_unicode.py]=1 # unicode thing
|
[test_unicode.py]=1 # unicode thing
|
||||||
[test_urllib2.py]=1 #
|
[test_urllib2.py]=1 #
|
||||||
|
[test_urllib2net.py]=1 # Investigate: Was working in 3.6.2. parse error.
|
||||||
[test_urllib2_localnet.py]=1 #
|
[test_urllib2_localnet.py]=1 #
|
||||||
[test_urllibnet.py]=1 # probably control flow - uninitialized variable
|
[test_urllibnet.py]=1 # probably control flow - uninitialized variable
|
||||||
[test_weakref.py]=1 # probably control flow - uninitialized variable
|
[test_weakref.py]=1 # probably control flow - uninitialized variable
|
||||||
|
@@ -643,6 +643,7 @@ class Python37Parser(Python37BaseParser):
|
|||||||
list_if37_not ::= compare_chained37 list_iter
|
list_if37_not ::= compare_chained37 list_iter
|
||||||
|
|
||||||
_ifstmts_jump ::= c_stmts_opt come_froms
|
_ifstmts_jump ::= c_stmts_opt come_froms
|
||||||
|
_ifstmts_jump ::= COME_FROM c_stmts come_froms
|
||||||
|
|
||||||
and_not ::= expr jmp_false expr POP_JUMP_IF_TRUE
|
and_not ::= expr jmp_false expr POP_JUMP_IF_TRUE
|
||||||
testfalse ::= and_not
|
testfalse ::= and_not
|
||||||
@@ -949,12 +950,11 @@ class Python37Parser(Python37BaseParser):
|
|||||||
|
|
||||||
and ::= expr JUMP_IF_FALSE_OR_POP expr come_from_opt
|
and ::= expr JUMP_IF_FALSE_OR_POP expr come_from_opt
|
||||||
and ::= expr jifop_come_from expr
|
and ::= expr jifop_come_from expr
|
||||||
and ::= expr JUMP_IF_FALSE expr COME_FROM
|
|
||||||
|
|
||||||
pjit_come_from ::= POP_JUMP_IF_TRUE COME_FROM
|
pjit_come_from ::= POP_JUMP_IF_TRUE COME_FROM
|
||||||
or ::= expr pjit_come_from expr
|
or ::= expr pjit_come_from expr
|
||||||
|
|
||||||
## FIXME: Is the below needed or is it covered above??
|
## Note that "jmp_false" is what we check on in the "and" reduce rule.
|
||||||
and ::= expr jmp_false expr COME_FROM
|
and ::= expr jmp_false expr COME_FROM
|
||||||
or ::= expr jmp_true expr COME_FROM
|
or ::= expr jmp_true expr COME_FROM
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user