@check_messages("<STR_LIT>", "<STR_LIT>")<EOL><INDENT>def visit_functiondef(self, node):<DEDENT>
<EOL>if not node.is_method():<EOL><INDENT>return<EOL><DEDENT>klass = node.parent.frame()<EOL>for stmt in node.nodes_of_class(astroid.Call):<EOL><INDENT>if node_frame_class(stmt) != node_frame_class(node):<EOL><INDENT>continue<EOL><DEDENT>expr = stmt.func<EOL>if not isinstance(expr, astroid.Attribute):<EOL><INDENT>continue<EOL><DEDENT>call = expr.expr<EOL>if not (<EOL>isinstance(call, astroid.Call)<EOL>and isinstance(call.func, astroid.Name)<EOL>and call.func.name == "<STR_LIT>"<EOL>):<EOL><INDENT>continue<EOL><DEDENT>if not klass.newstyle and has_known_bases(klass):<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>if not call.args:<EOL><INDENT>if sys.version_info[<NUM_LIT:0>] == <NUM_LIT:3>:<EOL><INDENT>continue<EOL><DEDENT>else:<EOL><INDENT>self.add_message("<STR_LIT>", node=call)<EOL>continue<EOL><DEDENT><DEDENT>arg0 = call.args[<NUM_LIT:0>]<EOL>if (<EOL>isinstance(arg0, astroid.Call)<EOL>and isinstance(arg0.func, astroid.Name)<EOL>and arg0.func.name == "<STR_LIT:type>"<EOL>):<EOL><INDENT>self.add_message("<STR_LIT>", node=call, args=("<STR_LIT:type>",))<EOL>continue<EOL><DEDENT>if (<EOL>len(call.args) >= <NUM_LIT:2><EOL>and isinstance(call.args[<NUM_LIT:1>], astroid.Name)<EOL>and call.args[<NUM_LIT:1>].name == "<STR_LIT>"<EOL>and isinstance(arg0, astroid.Attribute)<EOL>and arg0.attrname == "<STR_LIT>"<EOL>):<EOL><INDENT>self.add_message(<EOL>"<STR_LIT>", node=call, args=("<STR_LIT>",)<EOL>)<EOL>continue<EOL><DEDENT>try:<EOL><INDENT>supcls = call.args and next(call.args[<NUM_LIT:0>].infer(), None)<EOL><DEDENT>except astroid.InferenceError:<EOL><INDENT>continue<EOL><DEDENT>if klass is not supcls:<EOL><INDENT>name = None<EOL>if supcls:<EOL><INDENT>name = supcls.name<EOL><DEDENT>elif call.args and hasattr(call.args[<NUM_LIT:0>], "<STR_LIT:name>"):<EOL><INDENT>name = call.args[<NUM_LIT:0>].name<EOL><DEDENT>if name:<EOL><INDENT>self.add_message("<STR_LIT>", node=call, args=(name,))<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
check use of super