(self, fullname)
return loader
Try to find a loader for the specified module by delegating to
    self.find_loader().

    This method is deprecated in favor of finder.find_spec().
Try to find a loader for the specified module by delegating to
    self.find_loader().
Try to find a loader for the specified module by delegating to self . find_loader () .
def _find_module_shim(self, fullname):
    """Try to find a loader for the specified module by delegating to
    self.find_loader().

    This method is deprecated in favor of finder.find_spec().

    """
    _warnings.warn("find_module() is deprecated and "
                   "slated for removal in Python 3.12; use find_spec() instead",
                   DeprecationWarning)
    # Call find_loader(). If it returns a string (indicating this
    # is a namespace package portion), generate a warning and
    # return None.
    loader, portions = self.find_loader(fullname)
    if loader is None and len(portions):
        msg = 'Not importing directory {}: missing __init__'
        _warnings.warn(msg.format(portions[0]), ImportWarning)
    return loader
def _find_module_shim ( self , fullname ) : _warnings . warn ( "find_module() is deprecated and " "slated for removal in Python 3.12; use find_spec() instead" , DeprecationWarning ) # Call find_loader(). If it returns a string (indicating this # is a namespace package portion), generate a warning and # return None. loader , portions = self . find_loader ( fullname ) if loader is None and len ( portions ) : msg = 'Not importing directory {}: missing __init__' _warnings . warn ( msg . format ( portions [ 0 ] ) , ImportWarning ) return loader