pylint/checkers/imports.py
def _check_preferred_module(self, node, mod_path):
        """check if the module has a preferred replacement"""
        if mod_path in self.preferred_modules:
            self.add_message(
                "preferred-module",
                node=node,
                args=(self.preferred_modules[mod_path], mod_path),
            )
def _check_preferred_module(self, node, mod_path):
        if mod_path in self.preferred_modules:
            self.add_message(
                "preferred-module",
                node=node,
                args=(self.preferred_modules[mod_path], mod_path),
            )
def _check_preferred_module ( self , node , mod_path ) : if mod_path in self . preferred_modules : self . add_message ( "preferred-module" , node = node , args = ( self . preferred_modules [ mod_path ] , mod_path ) , )
check if the module has a preferred replacement
check if the module has a preferred replacement