@utils.check_messages('disallowed-name', 'invalid-name', 'assign-to-new-keyword', 'non-ascii-name')
def visit_classdef(self, node):
    self._check_assign_to_new_keyword_violation(node.name, node)
    self._check_name('class', node.name, node)
    for (attr, anodes) in node.instance_attrs.items():
        if (not any(node.instance_attr_ancestors(attr))):
            self._check_name('attr', attr, anodes[0])
@utils.check_messages('disallowed-name', 'invalid-name', 'assign-to-new-keyword', 'non-ascii-name')
def visit_classdef(self, node):
    self._check_assign_to_new_keyword_violation(node.name, node)
    self._check_name('class', node.name, node)
    for (attr, anodes) in node.instance_attrs.items():
        if (not any(node.instance_attr_ancestors(attr))):
            self._check_name('attr', attr, anodes[0])