From 70de35468ab876fdbd56544cfb204f6543e5d193 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Mon, 30 Oct 2023 18:07:12 +0100 Subject: [PATCH 1/2] gh-111301: Move importlib.resources changes to the Removed section --- Doc/whatsnew/3.13.rst | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 84d5daae6e623c..412fb0fe3298f2 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -605,19 +605,6 @@ although there is currently no date scheduled for their removal. * Implicit ``None`` on return values. * :mod:`importlib.resources`: First parameter to files is renamed to 'anchor'. -* :mod:`importlib.resources` deprecated methods: - - * ``contents()`` - * ``is_resource()`` - * ``open_binary()`` - * ``open_text()`` - * ``path()`` - * ``read_binary()`` - * ``read_text()`` - - Use ``files()`` instead. Refer to `importlib-resources: Migrating from Legacy - `_ - for migration advice. * :mod:`mailbox`: Use of StringIO input and text mode is deprecated, use BytesIO and binary mode instead. @@ -831,6 +818,22 @@ configparser and with a deprecation warning since Python 3.11. (Contributed by Hugo van Kemenade in :gh:`104886`.) +importlib +--------- + +* Remove :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 + `_ + for migration advice. + (Contributed by Jason R. Coombs in :gh:`106532`.) + locale ------ From 72d0b399d5e21a97bbd17c7707ccaa01baff5389 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Mon, 30 Oct 2023 18:45:30 +0100 Subject: [PATCH 2/2] Fix: Improve the list rendering --- Doc/whatsnew/3.13.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 412fb0fe3298f2..9db6af89062822 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -822,6 +822,7 @@ importlib --------- * Remove :mod:`importlib.resources` deprecated methods: + * ``contents()`` * ``is_resource()`` * ``open_binary()`` @@ -829,6 +830,7 @@ importlib * ``path()`` * ``read_binary()`` * ``read_text()`` + Use :func:`importlib.resources.files()` instead. Refer to `importlib-resources: Migrating from Legacy `_ for migration advice.