@@ -682,7 +682,7 @@ Before Python loads cached bytecode from ``.pyc`` file, it checks whether the
682
682
cache is up-to-date with the source ``.py `` file. By default, Python does this
683
683
by storing the source's last-modified timestamp and size in the cache file when
684
684
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
686
686
metadata.
687
687
688
688
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
849
849
contribute portions to namespace packages, path entry finders must implement
850
850
the :meth: `~importlib.abc.PathEntryFinder.find_spec ` method.
851
851
852
- :meth: `~importlib.abc.PathEntryFinder.find_spec ` takes two argument, the
852
+ :meth: `~importlib.abc.PathEntryFinder.find_spec ` takes two arguments: the
853
853
fully qualified name of the module being imported, and the (optional) target
854
854
module. ``find_spec() `` returns a fully populated spec for the module.
855
855
This spec will always have "loader" set (with one exception).
@@ -913,7 +913,7 @@ the builtin :func:`__import__` function may be sufficient. This technique
913
913
may also be employed at the module level to only alter the behaviour of
914
914
import statements within that module.
915
915
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
917
917
meta path (rather than disabling the standard import system entirely),
918
918
it is sufficient to raise :exc: `ModuleNotFoundError ` directly from
919
919
:meth: `~importlib.abc.MetaPathFinder.find_spec ` instead of returning
0 commit comments