diff options
| author | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-12 18:08:51 +0100 |
|---|---|---|
| committer | Emile Anclin <emile.anclin@logilab.fr> | 2009-03-12 18:08:51 +0100 |
| commit | 26c5c3e1849e814e1a258ad685e18befbb2b54b0 (patch) | |
| tree | e09525bf382182e439be3e07ad11bd63a0ad179a /nodes.py | |
| parent | 6b2fa9e4264d85b67e7bcccfb2af9d8cab6e7f61 (diff) | |
| download | astroid-git-26c5c3e1849e814e1a258ad685e18befbb2b54b0.tar.gz | |
AugAssign and Pass nodes are statements
--HG--
branch : _ast_compat
Diffstat (limited to 'nodes.py')
| -rw-r--r-- | nodes.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
