Skip to content

Commit 2e17b30

Browse files
Fix minor typos. (GH-17095)
(cherry picked from commit 2d56af7) Co-authored-by: Shu <[email protected]>
1 parent b8b3e43 commit 2e17b30

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
@@ -683,7 +683,7 @@ Before Python loads cached bytecode from ``.pyc`` file, it checks whether the
683683
cache is up-to-date with the source ``.py`` file. By default, Python does this
684684
by storing the source's last-modified timestamp and size in the cache file when
685685
writing it. At runtime, the import system then validates the cache file by
686-
checking the stored metadata in the cache file against at source's
686+
checking the stored metadata in the cache file against the source's
687687
metadata.
688688

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

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

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

0 commit comments

Comments
 (0)