pylint/pyreverse/inspector.py
def compute_module(self, context_name, mod_path):
        """return true if the module should be added to dependencies"""
        package_dir = os.path.dirname(self.project.path)
        if context_name == mod_path:
            return 0
        if modutils.is_standard_module(mod_path, (package_dir,)):
            return 1
        return 0
def compute_module(self, context_name, mod_path):
        package_dir = os.path.dirname(self.project.path)
        if context_name == mod_path:
            return 0
        if modutils.is_standard_module(mod_path, (package_dir,)):
            return 1
        return 0
def compute_module ( self , context_name , mod_path ) : package_dir = os . path . dirname ( self . project . path ) if context_name == mod_path : return 0 if modutils . is_standard_module ( mod_path , ( package_dir , ) ) : return 1 return 0
return true if the module should be added to dependencies
return true if the module should be added to dependencies