File tree 5 files changed +10
-10
lines changed
5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1683,9 +1683,9 @@ Deprecated
1683
1683
(Contributed by Brett Cannon in :issue:`42135 ` .)
1684
1684
1685
1685
* 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` ,
1689
1689
:class :`! pkgutil.ImpImporter` , and
1690
1690
:class :`! pkgutil.ImpLoader` have all been updated to list Python 3.12 as the
1691
1691
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
1889
1889
* :meth: `!importlib.machinery.FrozenLoader.module_repr `
1890
1890
* :meth: `!importlib.machinery.PathFinder.find_module `
1891
1891
* :meth: `!importlib.machinery.WindowsRegistryFinder.find_module `
1892
- * :func: `importlib.util.module_for_loader `
1892
+ * :func: `! importlib.util.module_for_loader `
1893
1893
* :func: `!importlib.util.set_loader_wrapper `
1894
1894
* :func: `!importlib.util.set_package_wrapper `
1895
1895
* :class: `!pkgutil.ImpImporter `
Original file line number Diff line number Diff line change @@ -2097,8 +2097,8 @@ Deprecations in the Python API
2097
2097
:meth: `importlib.abc.SourceLoader.exec_module `) and let the import system
2098
2098
take care of the rest; and
2099
2099
: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
2102
2102
functions are now handled automatically by the import system.
2103
2103
2104
2104
* The :mod: `!imp ` module is pending deprecation. To keep compatibility with
@@ -2277,7 +2277,7 @@ Changes in the Python API
2277
2277
in a backwards-compatible fashion, use e.g.
2278
2278
``getattr(module, '__loader__', None) is not None ``. (:issue: `17115 `.)
2279
2279
2280
- * :meth: `importlib.util.module_for_loader ` now sets ``__loader__ `` and
2280
+ * :meth: `! importlib.util.module_for_loader ` now sets ``__loader__ `` and
2281
2281
``__package__ `` unconditionally to properly support reloading. If this is not
2282
2282
desired then you will need to set these attributes manually. You can use
2283
2283
:func: `importlib.util.module_to_load ` for module management.
Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ Araujo.
499
499
.. nonce: HY2beA
500
500
.. section: Documentation
501
501
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
503
503
__package__. (Thanks Yair Frid.)
504
504
505
505
..
Original file line number Diff line number Diff line change @@ -2028,8 +2028,8 @@ resources.
2028
2028
.. nonce: NzdREm
2029
2029
.. section: Library
2030
2030
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 `.
2033
2033
2034
2034
..
2035
2035
You can’t perform that action at this time.
0 commit comments