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

Commit01910d6

Browse files
[3.12]gh-101100: Fix sphinx warnings inreference/import.rst (GH-114646) (#114652)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent045663f commit01910d6

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
@@ -106,7 +106,6 @@ Doc/library/xmlrpc.server.rst
106106
Doc/library/zlib.rst
107107
Doc/reference/compound_stmts.rst
108108
Doc/reference/datamodel.rst
109-
Doc/reference/import.rst
110109
Doc/tutorial/datastructures.rst
111110
Doc/using/windows.rst
112111
Doc/whatsnew/2.0.rst

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp