File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1683,9 +1683,9 @@ Deprecated
16831683 (Contributed by Brett Cannon in :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` have all been updated to list Python 3.12 as the
16911691 slated version of removal (they began raising :exc:`DeprecationWarning ` in
Original file line number Diff line number Diff 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 `
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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..
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments