diff options
author | Dominik MiedziĆski <dominik@mdzn.pl> | 2017-05-17 06:17:55 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-17 06:17:55 (GMT) |
commit | b769c91c2db304db44cd514344369cde1f8d9dc5 (patch) | |
tree | 38a671f05ac80121dcdfb6da0bee31c3fecd7632 /Doc/reference | |
parent | 460945f22acd288e660b432b288d9d81655572bf (diff) | |
download | cpython-b769c91c2db304db44cd514344369cde1f8d9dc5.zip cpython-b769c91c2db304db44cd514344369cde1f8d9dc5.tar.gz cpython-b769c91c2db304db44cd514344369cde1f8d9dc5.tar.bz2 |
Fix ModuleNotFoundError typo in import reference (#1610)
(cherry picked from commit c138d84b8d27d338872587aae69a73d8f9d16641)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/import.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 4dbd9d8..9475b8d 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -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. |