Commit 130ed793 authored by Stefan Behnel's avatar Stefan Behnel

correctly disable 'await' keyword when leaving 'async def' context

parent 49d47ab2
......@@ -2045,7 +2045,7 @@ def p_statement(s, ctx, first_statement = 0):
s.enable_keyword('async')
s.enable_keyword('await')
result = p_async_statement(s, ctx, decorators)
s.enable_keyword('await')
s.disable_keyword('await')
s.disable_keyword('async')
return result
elif decorators:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment