(self, fullname)
Load the specified module into sys.modules and return it.

    This method is deprecated.  Use loader.exec_module() instead.
Load the specified module into sys.modules and return it.
Load the specified module into sys . modules and return it .
def _load_module_shim(self, fullname):
    """Load the specified module into sys.modules and return it.

    This method is deprecated.  Use loader.exec_module() instead.

    """
    msg = ("the load_module() method is deprecated and slated for removal in "
          "Python 3.12; use exec_module() instead")
    _warnings.warn(msg, DeprecationWarning)
    spec = spec_from_loader(fullname, self)
    if fullname in sys.modules:
        module = sys.modules[fullname]
        _exec(spec, module)
        return sys.modules[fullname]
    else:
        return _load(spec)
def _load_module_shim ( self , fullname ) : msg = ( "the load_module() method is deprecated and slated for removal in " "Python 3.12; use exec_module() instead" ) _warnings . warn ( msg , DeprecationWarning ) spec = spec_from_loader ( fullname , self ) if fullname in sys . modules : module = sys . modules [ fullname ] _exec ( spec , module ) return sys . modules [ fullname ] else : return _load ( spec )