Skip to content

Commit

Permalink
Fix ModuleNotFoundError typo in import reference (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
miedzinski authored and serhiy-storchaka committed May 16, 2017
1 parent c7ac728 commit af34e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/reference/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit af34e0a

Please sign in to comment.