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

Commit423d7fa

Browse files
GH-97850: Suppress cross-references to removedimportlib.util functions (#104134)
`importlib.utils` -> `importlib.util` in a few places---------Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent8b03e5f commit423d7fa

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎Doc/whatsnew/3.10.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,9 +1683,9 @@ Deprecated
16831683
(Contributed by Brett Cannonin :issue:`42135`.)
16841684
16851685
* The deprecations of :mod:`!imp`, :func:`!importlib.find_loader`,
1686-
:func:`importlib.util.set_package_wrapper`,
1687-
:func:`importlib.util.set_loader_wrapper`,
1688-
:func:`importlib.util.module_for_loader`,
1686+
:func:`!importlib.util.set_package_wrapper`,
1687+
:func:`!importlib.util.set_loader_wrapper`,
1688+
:func:`!importlib.util.module_for_loader`,
16891689
:class:`!pkgutil.ImpImporter`,and
16901690
:class:`!pkgutil.ImpLoader` haveall been updated tolist Python3.12as the
16911691
slated version of removal (they began raising :exc:`DeprecationWarning`in

‎Doc/whatsnew/3.11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ C APIs pending removal are
18891889
*:meth:`!importlib.machinery.FrozenLoader.module_repr`
18901890
*:meth:`!importlib.machinery.PathFinder.find_module`
18911891
*:meth:`!importlib.machinery.WindowsRegistryFinder.find_module`
1892-
*:func:`importlib.util.module_for_loader`
1892+
*:func:`!importlib.util.module_for_loader`
18931893
*:func:`!importlib.util.set_loader_wrapper`
18941894
*:func:`!importlib.util.set_package_wrapper`
18951895
*:class:`!pkgutil.ImpImporter`

‎Doc/whatsnew/3.4.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,8 +2097,8 @@ Deprecations in the Python API
20972097
:meth:`importlib.abc.SourceLoader.exec_module`) and let the import system
20982098
take care of the rest; and
20992099
:meth:`!importlib.abc.Loader.module_repr`,
2100-
:meth:`importlib.util.module_for_loader`,:meth:`importlib.util.set_loader`,
2101-
and:meth:`importlib.util.set_package` are no longer needed because their
2100+
:meth:`!importlib.util.module_for_loader`,:meth:`!importlib.util.set_loader`,
2101+
and:meth:`!importlib.util.set_package` are no longer needed because their
21022102
functions are now handled automatically by the import system.
21032103

21042104
* The:mod:`!imp` module is pending deprecation. To keep compatibility with
@@ -2277,7 +2277,7 @@ Changes in the Python API
22772277
in a backwards-compatible fashion, use e.g.
22782278
``getattr(module, '__loader__', None) is not None``. (:issue:`17115`.)
22792279

2280-
*:meth:`importlib.util.module_for_loader` now sets ``__loader__`` and
2280+
*:meth:`!importlib.util.module_for_loader` now sets ``__loader__`` and
22812281
``__package__`` unconditionally to properly support reloading. If this is not
22822282
desired then you will need to set these attributes manually. You can use
22832283
:func:`importlib.util.module_to_load` for module management.

‎Misc/NEWS.d/3.10.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ Araujo.
499499
.. nonce: HY2beA
500500
.. section: Documentation
501501
502-
Updated importlib.utils.resolve_name() doc to use __spec__.parent instead of
502+
Updated importlib.util.resolve_name() doc to use __spec__.parent instead of
503503
__package__. (Thanks Yair Frid.)
504504

505505
..

‎Misc/NEWS.d/3.12.0a1.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,8 +2028,8 @@ resources.
20282028
.. nonce: NzdREm
20292029
.. section: Library
20302030
2031-
Remove deprecated:func:`importlib.utils.set_loader` and
2032-
:func:`importlib.utils.module_for_loader` from:mod:`importlib.utils`.
2031+
Remove deprecated:func:`!importlib.util.set_loader` and
2032+
:func:`!importlib.util.module_for_loader` from:mod:`importlib.util`.
20332033

20342034
..
20352035

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp