def visit_attribute(self, node, parent):
context = self._get_context(node)<EOL>if context == astroid.Del:<EOL><INDENT>newnode = nodes.DelAttr(node.attr, node.lineno, node.col_offset, parent)<EOL><DEDENT>elif context == astroid.Store:<EOL><INDENT>newnode = nodes.AssignAttr(node.attr, node.lineno, node.col_offset, parent)<EOL>if not isinstance(parent, astroid.ExceptHandler):<EOL><INDENT>self._delayed_assattr.append(newnode)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>newnode = nodes.Attribute(node.attr, node.lineno, node.col_offset, parent)<EOL><DEDENT>newnode.postinit(self.visit(node.value, newnode))<EOL>return newnode<EOL>
visit an Attribute node by returning a fresh instance of it