You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add context manager test...
handle degenerate 3.8 withas
This commit is contained in:
@@ -586,6 +586,15 @@ class Python38Parser(Python37Parser):
|
||||
GET_ITER CALL_FUNCTION_1
|
||||
"""
|
||||
self.addRule(rule, nop_func)
|
||||
elif opname == "SETUP_WITH":
|
||||
rules_str = """
|
||||
stmt ::= with_as_pass
|
||||
with_as_pass ::= expr
|
||||
SETUP_WITH store pass
|
||||
POP_BLOCK BEGIN_FINALLY COME_FROM_WITH
|
||||
with_suffix
|
||||
"""
|
||||
self.addRule(rules_str, nop_func)
|
||||
|
||||
def reduce_is_invalid(self, rule, ast, tokens, first, last):
|
||||
invalid = super(Python38Parser, self).reduce_is_invalid(
|
||||
|
Reference in New Issue
Block a user