diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-01-27 14:30:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 14:30:21 (GMT) |
commit | a384b20c0ce5aa520fa91ae0233d53642925525b (patch) | |
tree | 75727cf35c110f785bfb4ee13df9a14e4f31ecde /Doc/reference | |
parent | b6623d61d4e07aefd15d910ef67837c66bceaf32 (diff) | |
download | cpython-a384b20c0ce5aa520fa91ae0233d53642925525b.zip cpython-a384b20c0ce5aa520fa91ae0233d53642925525b.tar.gz cpython-a384b20c0ce5aa520fa91ae0233d53642925525b.tar.bz2 |
gh-101100: Fix sphinx warnings in `reference/import.rst` (#114646)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/import.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index a7beeea..f8c9724 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -327,14 +327,15 @@ modules, and one that knows how to import modules from an :term:`import path` finders replaced :meth:`!find_module`, which is now deprecated. While it will continue to work without change, the import machinery will try it only if the finder does not implement - ``find_spec()``. + :meth:`~importlib.abc.MetaPathFinder.find_spec`. .. versionchanged:: 3.10 Use of :meth:`!find_module` by the import system now raises :exc:`ImportWarning`. .. versionchanged:: 3.12 - ``find_module()`` has been removed. Use :meth:`find_spec` instead. + :meth:`!find_module` has been removed. + Use :meth:`~importlib.abc.MetaPathFinder.find_spec` instead. Loading @@ -812,7 +813,7 @@ attributes on package objects are also used. These provide additional ways that the import machinery can be customized. :data:`sys.path` contains a list of strings providing search locations for -modules and packages. It is initialized from the :data:`PYTHONPATH` +modules and packages. It is initialized from the :envvar:`PYTHONPATH` environment variable and various other installation- and implementation-specific defaults. Entries in :data:`sys.path` can name directories on the file system, zip files, and potentially other "locations" |