Skip to content

Commit af34e0a

Browse files
miedzinskiserhiy-storchaka
authored andcommitted
Fix ModuleNotFoundError typo in import reference (#1606)
1 parent c7ac728 commit af34e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/import.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ import statements within that module.
890890

891891
To selectively prevent import of some modules from a hook early on the
892892
meta path (rather than disabling the standard import system entirely),
893-
it is sufficient to raise :exc:`ModuleNoFoundError` directly from
893+
it is sufficient to raise :exc:`ModuleNotFoundError` directly from
894894
:meth:`~importlib.abc.MetaPathFinder.find_spec` instead of returning
895895
``None``. The latter indicates that the meta path search should continue,
896896
while raising an exception terminates it immediately.

0 commit comments

Comments
 (0)