cpython/Lib/importlib
Brett Cannon 8f5ac5106e Issue #15767: Touch up ModuleNotFoundError usage by import.
Forgot to raise ModuleNotFoundError when None is found in sys.modules.
This led to introducing the C function PyErr_SetImportErrorSubclass()
to make setting ModuleNotFoundError easier.

Also updated the reference docs to mention ModuleNotFoundError
appropriately. Updated the docs for ModuleNotFoundError to mention the
None in sys.modules case.

Lastly, it was noticed that PyErr_SetImportError() was not setting an
exception when returning None in one case. That issue is now fixed.
2013-06-12 23:29:18 -04:00
..
__init__.py Issue #17099: Have importlib.find_loader() raise ValueError when 2013-03-13 11:09:08 -07:00
_bootstrap.py Issue #15767: Touch up ModuleNotFoundError usage by import. 2013-06-12 23:29:18 -04:00
abc.py Issues #18088, 18089: Introduce 2013-05-31 18:56:47 -04:00
machinery.py Issue #15576: Allow extension modules to be a package's __init__ 2012-08-10 13:47:54 -04:00
util.py fix whitespace 2013-05-31 18:57:45 -04:00