summaryrefslogtreecommitdiff
path: root/astroid/nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-09-07 23:53:41 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-09-07 23:53:41 +0300
commit82b6c1508a3228a4b3f00c24ce1a4c9d90f36749 (patch)
tree778216852d24af4a251d14d0148e54bc7b68b6bb /astroid/nodes.py
parent515a38f8bfba3c4e59892f98018121848b8924a1 (diff)
downloadastroid-git-82b6c1508a3228a4b3f00c24ce1a4c9d90f36749.tar.gz
Second pass of the Python 3.5 support: adding Async nodes.
Diffstat (limited to 'astroid/nodes.py')
-rw-r--r--astroid/nodes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/astroid/nodes.py b/astroid/nodes.py
index f3307d85..540caa94 100644
--- a/astroid/nodes.py
+++ b/astroid/nodes.py
@@ -45,6 +45,7 @@ from astroid.node_classes import (
List, Name, Nonlocal, Pass, Print, Raise, Return, Set, Slice, Starred, Subscript,
TryExcept, TryFinally, Tuple, UnaryOp, While, With, Yield, YieldFrom,
const_factory,
+ AsyncFor, Await, AsyncWith,
# Backwards-compatibility aliases
Backquote, Discard, AssName, AssAttr, Getattr, CallFunc, From
)
@@ -59,13 +60,15 @@ from astroid.scoped_nodes import (
ALL_NODE_CLASSES = (
+ AsyncFunctionDef, AsyncFor, AsyncWith, Await,
+
Arguments, AssignAttr, Assert, Assign, AssignName, AugAssign,
Repr, BinOp, BoolOp, Break,
Call, ClassDef, Compare, Comprehension, Const, Continue,
Decorators, DelAttr, DelName, Delete,
Dict, DictComp, Expr,
Ellipsis, EmptyNode, ExceptHandler, Exec, ExtSlice,
- For, ImportFrom, FunctionDef, AsyncFunctionDef,
+ For, ImportFrom, FunctionDef,
Attribute, GeneratorExp, Global,
If, IfExp, Import, Index,
Keyword,