]> granicus.if.org Git - python/commitdiff
Fix ModuleNotFoundError typo in import reference (#1610)
authorDominik Miedziński <dominik@mdzn.pl>
Wed, 17 May 2017 06:17:55 +0000 (08:17 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 17 May 2017 06:17:55 +0000 (09:17 +0300)
(cherry picked from commit c138d84b8d27d338872587aae69a73d8f9d16641)

Doc/reference/import.rst

index 4dbd9d88c301a0faf988786009f7c1cf8b6de14a..9475b8d55c2dc37a9bac76760c82d4f6c88ac3b0 100644 (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.