Skip to content

Commit

Permalink
[3.12] gh-111301: Advertise importlib methods removal in What's new i…
Browse files Browse the repository at this point in the history
…n Python 3.12 (GH-111630) (GH-114187)

(cherry picked from commit f497525)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
  • Loading branch information
miss-islington and befeleme authored Jan 18, 2024
1 parent c2a2126 commit 281fef1
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 @@ -1374,6 +1374,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 281fef1

Please sign in to comment.