Lines Matching refs:exec_module
342 # It is assumed 'exec_module' will also be defined on the loader.
355 elif not hasattr(spec.loader, 'exec_module'):
361 spec.loader.exec_module(module)
396 * The module created during loading and passed to exec_module() may
408 The import machinery calls the :meth:`importlib.abc.Loader.exec_module`
410 returned from :meth:`~importlib.abc.Loader.exec_module` is ignored.
420 :meth:`~importlib.abc.Loader.exec_module` will be propagated.
438 :meth:`~importlib.abc.Loader.exec_module` and the import
443 not also implement ``exec_module()``. However, ``load_module()`` has been
444 deprecated and loaders should implement ``exec_module()`` instead.
466 A :exc:`DeprecationWarning` is raised when ``exec_module()`` is defined but
470 An :exc:`ImportError` is raised when ``exec_module()`` is defined but