[3.12] gh-101100: Fix sphinx warnings in reference/import.rst (GH-114646) (#114652)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2024-01-27 17:37:08 +01:00 committed by GitHub
parent 045663f992
commit 01910d6845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -327,14 +327,15 @@ modules, and one that knows how to import modules from an :term:`import path`
finders replaced :meth:`!find_module`, which finders replaced :meth:`!find_module`, which
is now deprecated. While it will continue to work without change, the is now deprecated. While it will continue to work without change, the
import machinery will try it only if the finder does not implement import machinery will try it only if the finder does not implement
``find_spec()``. :meth:`~importlib.abc.MetaPathFinder.find_spec`.
.. versionchanged:: 3.10 .. versionchanged:: 3.10
Use of :meth:`!find_module` by the import system Use of :meth:`!find_module` by the import system
now raises :exc:`ImportWarning`. now raises :exc:`ImportWarning`.
.. versionchanged:: 3.12 .. 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 Loading
@ -812,7 +813,7 @@ attributes on package objects are also used. These provide additional ways
that the import machinery can be customized. that the import machinery can be customized.
:data:`sys.path` contains a list of strings providing search locations for :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 environment variable and various other installation- and
implementation-specific defaults. Entries in :data:`sys.path` can name implementation-specific defaults. Entries in :data:`sys.path` can name
directories on the file system, zip files, and potentially other "locations" directories on the file system, zip files, and potentially other "locations"

View file

@ -106,7 +106,6 @@ Doc/library/xmlrpc.server.rst
Doc/library/zlib.rst Doc/library/zlib.rst
Doc/reference/compound_stmts.rst Doc/reference/compound_stmts.rst
Doc/reference/datamodel.rst Doc/reference/datamodel.rst
Doc/reference/import.rst
Doc/tutorial/datastructures.rst Doc/tutorial/datastructures.rst
Doc/using/windows.rst Doc/using/windows.rst
Doc/whatsnew/2.0.rst Doc/whatsnew/2.0.rst