Skip to content

Commit

Permalink
pythongh-101100: Fix sphinx warnings in reference/import.rst (pytho…
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Jan 27, 2024
1 parent b6623d6 commit a384b20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Doc/reference/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ Doc/library/xmlrpc.server.rst
Doc/library/zlib.rst
Doc/reference/compound_stmts.rst
Doc/reference/datamodel.rst
Doc/reference/import.rst
Doc/tutorial/datastructures.rst
Doc/using/windows.rst
Doc/whatsnew/2.0.rst
Expand Down

0 comments on commit a384b20

Please sign in to comment.