Skip to content

Commit 2d56af7

Browse files
susan-shu-cbenjaminp
authored andcommitted
Fix minor typos. (GH-17095)
1 parent d6d6e2a commit 2d56af7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/reference/import.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ Before Python loads cached bytecode from ``.pyc`` file, it checks whether the
682682
cache is up-to-date with the source ``.py`` file. By default, Python does this
683683
by storing the source's last-modified timestamp and size in the cache file when
684684
writing it. At runtime, the import system then validates the cache file by
685-
checking the stored metadata in the cache file against at source's
685+
checking the stored metadata in the cache file against the source's
686686
metadata.
687687

688688
Python also supports "hash-based" cache files, which store a hash of the source
@@ -849,7 +849,7 @@ In order to support imports of modules and initialized packages and also to
849849
contribute portions to namespace packages, path entry finders must implement
850850
the :meth:`~importlib.abc.PathEntryFinder.find_spec` method.
851851

852-
:meth:`~importlib.abc.PathEntryFinder.find_spec` takes two argument, the
852+
:meth:`~importlib.abc.PathEntryFinder.find_spec` takes two arguments: the
853853
fully qualified name of the module being imported, and the (optional) target
854854
module. ``find_spec()`` returns a fully populated spec for the module.
855855
This spec will always have "loader" set (with one exception).
@@ -913,7 +913,7 @@ the builtin :func:`__import__` function may be sufficient. This technique
913913
may also be employed at the module level to only alter the behaviour of
914914
import statements within that module.
915915

916-
To selectively prevent import of some modules from a hook early on the
916+
To selectively prevent the import of some modules from a hook early on the
917917
meta path (rather than disabling the standard import system entirely),
918918
it is sufficient to raise :exc:`ModuleNotFoundError` directly from
919919
:meth:`~importlib.abc.MetaPathFinder.find_spec` instead of returning

0 commit comments

Comments
 (0)