Skip to content

Commit 2107e5f

Browse files
committed
pythongh-111301: Advertise importlib methods removal in What's new in Python 3.12
1 parent 230e8e9 commit 2107e5f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Doc/whatsnew/3.12.rst

+12
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,18 @@ APIs:
13711371
* :meth:`!unittest.TestProgram.usageExit` (:gh:`67048`)
13721372
* :class:`!webbrowser.MacOSX` (:gh:`86421`)
13731373
* :class:`classmethod` descriptor chaining (:gh:`89519`)
1374+
* :mod:`importlib.resources` deprecated methods:
1375+
1376+
* ``contents()``
1377+
* ``is_resource()``
1378+
* ``open_binary()``
1379+
* ``open_text()``
1380+
* ``path()``
1381+
* ``read_binary()``
1382+
* ``read_text()``
1383+
1384+
Use :func:`importlib.resources.files()` instead. Refer to `importlib-resources: Migrating from Legacy
1385+
<https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_ (:gh:`106531`)
13741386

13751387
Pending Removal in Python 3.14
13761388
------------------------------

0 commit comments

Comments
 (0)