Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita384b20

Browse files
authored
gh-101100: Fix sphinx warnings inreference/import.rst (#114646)
1 parentb6623d6 commita384b20

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎Doc/reference/import.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,15 @@ modules, and one that knows how to import modules from an :term:`import path`
327327
finders replaced:meth:`!find_module`, which
328328
is now deprecated. While it will continue to work without change, the
329329
import machinery will try it only if the finder does not implement
330-
``find_spec()``.
330+
:meth:`~importlib.abc.MetaPathFinder.find_spec`.
331331

332332
..versionchanged::3.10
333333
Use of:meth:`!find_module` by the import system
334334
now raises:exc:`ImportWarning`.
335335

336336
..versionchanged::3.12
337-
``find_module()`` has been removed. Use:meth:`find_spec` instead.
337+
:meth:`!find_module` has been removed.
338+
Use:meth:`~importlib.abc.MetaPathFinder.find_spec` instead.
338339

339340

340341
Loading
@@ -812,7 +813,7 @@ attributes on package objects are also used. These provide additional ways
812813
that the import machinery can be customized.
813814

814815
:data:`sys.path` contains a list of strings providing search locations for
815-
modules and packages. It is initialized from the:data:`PYTHONPATH`
816+
modules and packages. It is initialized from the:envvar:`PYTHONPATH`
816817
environment variable and various other installation- and
817818
implementation-specific defaults. Entries in:data:`sys.path` can name
818819
directories on the file system, zip files, and potentially other "locations"

‎Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Doc/library/xmlrpc.server.rst
8787
Doc/library/zlib.rst
8888
Doc/reference/compound_stmts.rst
8989
Doc/reference/datamodel.rst
90-
Doc/reference/import.rst
9190
Doc/tutorial/datastructures.rst
9291
Doc/using/windows.rst
9392
Doc/whatsnew/2.0.rst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp