summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2009-03-12 18:08:51 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2009-03-12 18:08:51 +0100
commit26c5c3e1849e814e1a258ad685e18befbb2b54b0 (patch)
treee09525bf382182e439be3e07ad11bd63a0ad179a /nodes.py
parent6b2fa9e4264d85b67e7bcccfb2af9d8cab6e7f61 (diff)
downloadastroid-git-26c5c3e1849e814e1a258ad685e18befbb2b54b0.tar.gz
AugAssign and Pass nodes are statements
--HG-- branch : _ast_compat
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nodes.py b/nodes.py
index e0892624..025cae4c 100644
--- a/nodes.py
+++ b/nodes.py
@@ -323,9 +323,9 @@ def replace_child(self, child, newchild):
child.parent = None
sequence[sequence.index(child)] = newchild
-for klass in (Assign, Break, Class, Continue, Delete, Discard, ExceptHandler,
- For, From, Function, Global, If, Import, Print, Raise, Return,
- TryExcept, TryFinally, While, With, Yield):
+for klass in (Assign, AugAssign, 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
klass.replace = replace_child
Module.replace = replace_child