3.8 async for/with...

More is needed though.
This commit is contained in:
rocky
2019-04-13 22:22:37 -04:00
parent f89ba40147
commit 400943bb6a
3 changed files with 54 additions and 16 deletions

View File

@@ -160,7 +160,7 @@ class Python35Parser(Python34Parser):
call_token = tokens[i+1]
rule = 'call ::= expr unmapexpr ' + call_token.kind
self.addRule(rule, nop_func)
elif opname == 'BEFORE_ASYNC_WITH':
elif opname == 'BEFORE_ASYNC_WITH' and self.version < 3.8:
# Some Python 3.5+ async additions
rules_str = """
async_with_stmt ::= expr