pylint/checkers/python3.py
def visit_name(self, node):
        """Detect when a "bad" built-in is referenced."""
        found_node, _ = node.lookup(node.name)
        if not _is_builtin(found_node):
            return
        if node.name not in self._bad_builtins:
            return
        if node_ignores_exception(node) or isinstance(
            find_try_except_wrapper_node(node), astroid.ExceptHandler
        ):
            return

        message = node.name.lower() + "-builtin"
        self.add_message(message, node=node)
def visit_name(self, node):
        found_node, _ = node.lookup(node.name)
        if not _is_builtin(found_node):
            return
        if node.name not in self._bad_builtins:
            return
        if node_ignores_exception(node) or isinstance(
            find_try_except_wrapper_node(node), astroid.ExceptHandler
        ):
            return

        message = node.name.lower() + "-builtin"
        self.add_message(message, node=node)
def visit_name ( self , node ) : found_node , _ = node . lookup ( node . name ) if not _is_builtin ( found_node ) : return if node . name not in self . _bad_builtins : return if node_ignores_exception ( node ) or isinstance ( find_try_except_wrapper_node ( node ) , astroid . ExceptHandler ) : return message = node . name . lower ( ) + "-builtin" self . add_message ( message , node = node )
Detect when a "bad" built-in is referenced.
Detect when a bad built - in is referenced .