diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-03 17:23:23 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-03 17:23:23 +0200 |
commit | 689a4365cf52ddb91e27bfba404e4b971ebeecc9 (patch) | |
tree | 67a54957072578fffae768475b7b2900c6e82a27 /astroid/tree/rebuilder.py | |
parent | 0f1802052f817c7ac7eb64792e8ab60722875eff (diff) | |
download | astroid-git-689a4365cf52ddb91e27bfba404e4b971ebeecc9.tar.gz |
Remove the visit method for AssignAttr in rebuilder, since AssignAttr does not exist as a node in the builtin ast module.
Diffstat (limited to 'astroid/tree/rebuilder.py')
-rw-r--r-- | astroid/tree/rebuilder.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/astroid/tree/rebuilder.py b/astroid/tree/rebuilder.py index 9f15999d..8cf6cc0a 100644 --- a/astroid/tree/rebuilder.py +++ b/astroid/tree/rebuilder.py @@ -185,13 +185,6 @@ class TreeRebuilder(object): varargannotation, kwargannotation) return newnode - def visit_assignattr(self, node, parent, assign_ctx=None): - """visit a AssignAttr node by returning a fresh instance of it""" - newnode = nodes.AssignAttr(node.lineno, node.col_offset, parent) - newnode.postinit(self.visit(node.expr, newnode, None)) - self._delayed_assattr.append(newnode) - return newnode - def visit_assert(self, node, parent, assign_ctx=None): """visit a Assert node by returning a fresh instance of it""" newnode = nodes.Assert(node.lineno, node.col_offset, parent) @@ -485,7 +478,6 @@ class TreeRebuilder(object): newnode = nodes.DelAttr(node.attr, node.lineno, node.col_offset, parent) elif assign_ctx == "Assign": - # FIXME : maybe we should call visit_assignattr ? newnode = nodes.AssignAttr(node.attr, node.lineno, node.col_offset, parent) else: |