Skip to content

Commit

Permalink
pythongh-111301: Advertise importlib methods removal in What's new in…
Browse files Browse the repository at this point in the history
… Python 3.12
  • Loading branch information
befeleme committed Nov 2, 2023
1 parent 230e8e9 commit 2107e5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,18 @@ APIs:
* :meth:`!unittest.TestProgram.usageExit` (:gh:`67048`)
* :class:`!webbrowser.MacOSX` (:gh:`86421`)
* :class:`classmethod` descriptor chaining (:gh:`89519`)
* :mod:`importlib.resources` deprecated methods:

* ``contents()``
* ``is_resource()``
* ``open_binary()``
* ``open_text()``
* ``path()``
* ``read_binary()``
* ``read_text()``

Use :func:`importlib.resources.files()` instead. Refer to `importlib-resources: Migrating from Legacy
<https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_ (:gh:`106531`)

Pending Removal in Python 3.14
------------------------------
Expand Down

0 comments on commit 2107e5f

Please sign in to comment.