Fix diff parser: Also check async with

This commit is contained in:
Dave Halter
2019-01-06 16:25:28 +01:00
parent b33c2b3ae1
commit edbceba4f8
2 changed files with 6 additions and 11 deletions

View File

@@ -136,6 +136,8 @@ def _suite_or_file_input_is_valid(pgen_grammar, stack):
def _is_flow_node(node):
if node.type == 'async_stmt':
node = node.children[1]
try:
value = node.children[0].value
except AttributeError: