pylint/checkers/imports.py
def _check_deprecated_module(self, node, mod_path):
        """check if the module is deprecated"""
        for mod_name in self.config.deprecated_modules:
            if mod_path == mod_name or mod_path.startswith(mod_name + "."):
                self.add_message("deprecated-module", node=node, args=mod_path)
def _check_deprecated_module(self, node, mod_path):
        for mod_name in self.config.deprecated_modules:
            if mod_path == mod_name or mod_path.startswith(mod_name + "."):
                self.add_message("deprecated-module", node=node, args=mod_path)
def _check_deprecated_module ( self , node , mod_path ) : for mod_name in self . config . deprecated_modules : if mod_path == mod_name or mod_path . startswith ( mod_name + "." ) : self . add_message ( "deprecated-module" , node = node , args = mod_path )
check if the module is deprecated
check if the module is deprecated