summaryrefslogtreecommitdiffstats
path: root/Doc/reference/import.rst
diff options
context:
space:
mode:
authorDominik MiedziƄski <dominik@mdzn.pl>2017-05-16 16:40:17 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-05-16 16:40:17 (GMT)
commitaf34e0a07bc06a6248b8229247e05d1c767b2f32 (patch)
treec6e46d037f771d1d50a354c9f13d0938bf4cb6a3 /Doc/reference/import.rst
parentc7ac7280c321b3c1679fe5f657a6be0f86adf173 (diff)
downloadcpython-af34e0a07bc06a6248b8229247e05d1c767b2f32.zip
cpython-af34e0a07bc06a6248b8229247e05d1c767b2f32.tar.gz
cpython-af34e0a07bc06a6248b8229247e05d1c767b2f32.tar.bz2
Fix ModuleNotFoundError typo in import reference (#1606)
Diffstat (limited to 'Doc/reference/import.rst')
-rw-r--r--Doc/reference/import.rst2
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.