Support async for statement

This commit is contained in:
Robin Roth
2017-11-01 14:22:15 +01:00
committed by Dave Halter
parent 647073b1b9
commit 4824534f8a

View File

@@ -1161,4 +1161,5 @@ class CompFor(PythonBaseNode):
"""
Returns the a list of `Name` that the comprehension defines.
"""
return _defined_names(self.children[1])
# allow async for
return _defined_names(self.children[self.children.index('for') + 1])