]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-111301: Advertise importlib methods removal in What's new in Python 3.12...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Jan 2024 13:38:13 +0000 (14:38 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 13:38:13 +0000 (14:38 +0100)
(cherry picked from commit f49752552e673e5192f22eae0076b2650c7d6afc)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Doc/whatsnew/3.12.rst

index 78b85f671627eca9a70e207fa40475812ef8e080..e442490f75b6bb229d4fcfa8cf70c5bf811b47af 100644 (file)
@@ -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
 ------------------------------