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 | dbf08da7fbd628a2dfeb4f0a6a3e79a33393ecf4 (patch) | |
tree | 3c1a2798f18e0d5d5a73f7721c5c077d714f9b4a | |
parent | 7e252f10fc101d51dcea588db885ec205fdc4f8d (diff) | |
download | astroid-dbf08da7fbd628a2dfeb4f0a6a3e79a33393ecf4.tar.gz |
Remove the visit method for AssignAttr in rebuilder, since AssignAttr does not exist as a node in the builtin ast module.
-rw-r--r-- | astroid/rebuilder.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py index d039adc..cab9317 100644 --- a/astroid/rebuilder.py +++ b/astroid/rebuilder.py @@ -195,13 +195,6 @@ class TreeRebuilder(object): newnode.parent.set_local(kwarg, newnode) 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) @@ -523,7 +516,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) self._delayed_assattr.append(newnode) |