summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-13 15:15:31 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-13 15:15:31 +0100
commit0ae8fc046952ec2cb56758012873e823f7584c9e (patch)
tree3cce7619fd859121dc1784317f145f341debe556 /nodes.py
parent68bfe86607f50209c3e9482143ba6c9f091dd38f (diff)
downloadastroid-git-0ae8fc046952ec2cb56758012873e823f7584c9e.tar.gz
Assert is a statement node
--HG-- branch : _ast_compat
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nodes.py b/nodes.py
index fccf26c8..4fca5f57 100644
--- a/nodes.py
+++ b/nodes.py
@@ -323,7 +323,7 @@ def replace_child(self, child, newchild):
child.parent = None
sequence[sequence.index(child)] = newchild
-for klass in (Assign, AugAssign, Break, Class, Continue, Delete, Discard,
+for klass in (Assign, AugAssign, Assert, Break, Class, Continue, Delete, Discard,
ExceptHandler, For, From, Function, Global, If, Import, Pass,
Print, Raise, Return, TryExcept, TryFinally, While, With, Yield):
klass.is_statement = True