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