Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6336fb2

Browse files
committed
Issue #27712: Fix some typos in the import docs.
Thanks to Xiang Zhang for the patch.
1 parent 7f65af3 commit 6336fb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/reference/import.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ hooks <path entry hook>` in this list is called with a single argument, the
774774
path entry to be searched. This callable may either return a :term:`path
775775
entry finder` that can handle the path entry, or it may raise
776776
:exc:`ImportError`. An :exc:`ImportError` is used by the path based finder to
777-
signal that the hook cannot find a :term:`path entry finder`.
777+
signal that the hook cannot find a :term:`path entry finder`
778778
for that :term:`path entry`. The
779779
exception is ignored and :term:`import path` iteration continues. The hook
780780
should expect either a string or bytes object; the encoding of bytes objects
@@ -828,7 +828,7 @@ portion.
828828

829829
Older path entry finders may implement one of these two deprecated methods
830830
instead of ``find_spec()``. The methods are still respected for the
831-
sake of backward compatibility. Howevever, if ``find_spec()`` is
831+
sake of backward compatibility. However, if ``find_spec()`` is
832832
implemented on the path entry finder, the legacy methods are ignored.
833833

834834
:meth:`~importlib.abc.PathEntryFinder.find_loader` takes one argument, the

0 commit comments

Comments
 (0)