diff options
author | Ćukasz Rogalski <rogalski.91@gmail.com> | 2017-03-01 19:47:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-01 19:47:31 +0100 |
commit | bf3d6876c310b39d045f6338ec8b93d2b1967072 (patch) | |
tree | ec230c8442a5b67571d8744221bd87a8192a7c5c /astroid/rebuilder.py | |
parent | ace4088b9837fc07a529edbb57b74583168da009 (diff) | |
download | astroid-git-bf3d6876c310b39d045f6338ec8b93d2b1967072.tar.gz |
Add support for asynchronous comprehensions (#400)
Closes #399
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r-- | astroid/rebuilder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index f66809bc..115a8d45 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -358,7 +358,8 @@ class TreeRebuilder(object): newnode.postinit(self.visit(node.target, newnode), self.visit(node.iter, newnode), [self.visit(child, newnode) - for child in node.ifs]) + for child in node.ifs], + getattr(node, 'is_async', None)) return newnode def visit_decorators(self, node, parent): |