From: Brett Cannon Date: Fri, 12 Aug 2016 17:56:48 +0000 (-0700) Subject: Issue #27712: Fix some typos in the import docs. X-Git-Tag: v3.6.0a4~22^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6336fb27342e4f5ec76d73182d2c0af764a51777;p=thirdparty%2FPython%2Fcpython.git Issue #27712: Fix some typos in the import docs. Thanks to Xiang Zhang for the patch. --- diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 2144c1fa3560..64302b89a847 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -774,7 +774,7 @@ hooks ` in this list is called with a single argument, the path entry to be searched. This callable may either return a :term:`path entry finder` that can handle the path entry, or it may raise :exc:`ImportError`. An :exc:`ImportError` is used by the path based finder to -signal that the hook cannot find a :term:`path entry finder`. +signal that the hook cannot find a :term:`path entry finder` for that :term:`path entry`. The exception is ignored and :term:`import path` iteration continues. The hook should expect either a string or bytes object; the encoding of bytes objects @@ -828,7 +828,7 @@ portion. Older path entry finders may implement one of these two deprecated methods instead of ``find_spec()``. The methods are still respected for the - sake of backward compatibility. Howevever, if ``find_spec()`` is + sake of backward compatibility. However, if ``find_spec()`` is implemented on the path entry finder, the legacy methods are ignored. :meth:`~importlib.abc.PathEntryFinder.find_loader` takes one argument, the