Kaydet (Commit) af34e0a0 authored tarafından Dominik Miedziński's avatar Dominik Miedziński Kaydeden (comit) Serhiy Storchaka

Fix ModuleNotFoundError typo in import reference (#1606)

üst c7ac7280
......@@ -890,7 +890,7 @@ import statements within that module.
To selectively prevent import of some modules from a hook early on the
meta path (rather than disabling the standard import system entirely),
it is sufficient to raise :exc:`ModuleNoFoundError` directly from
it is sufficient to raise :exc:`ModuleNotFoundError` directly from
:meth:`~importlib.abc.MetaPathFinder.find_spec` instead of returning
``None``. The latter indicates that the meta path search should continue,
while raising an exception terminates it immediately.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment