Fix ModuleNotFoundError typo in import reference (#1610)

(cherry picked from commit c138d84b8d)
This commit is contained in:
Dominik Miedziński 2017-05-17 08:17:55 +02:00 committed by Serhiy Storchaka
parent 460945f22a
commit b769c91c2d

View file

@ -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.