From b92fdd3d2aafbebaf1d2ce5a6f1792b93b4f5a51 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Mon, 30 Oct 2023 18:20:47 +0100 Subject: [PATCH 1/2] gh-111301: Move `importlib.resources.files` change to What's new in Python 3.12 --- Doc/whatsnew/3.12.rst | 3 +++ Doc/whatsnew/3.13.rst | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 36d12feebea79b..1bc8a878da8da1 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -716,6 +716,9 @@ importlib.resources * :func:`importlib.resources.as_file` now supports resource directories. (Contributed by Jason R. Coombs in :gh:`97930`.) +* Rename first parameter of :func:`importlib.resources.files` to *anchor* . + (Contributed by Jason R. Coombs in :gh:`100598`.) + inspect ------- diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 84d5daae6e623c..eaa9ab5a04c88c 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -604,7 +604,6 @@ although there is currently no date scheduled for their removal. * ``EntryPoints`` tuple interface. * Implicit ``None`` on return values. -* :mod:`importlib.resources`: First parameter to files is renamed to 'anchor'. * :mod:`importlib.resources` deprecated methods: * ``contents()`` From 3d44e554080a225a355ac3abfb7efbdde84a0b95 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Mon, 30 Oct 2023 18:44:16 +0100 Subject: [PATCH 2/2] Fix typo: forgotten space --- Doc/whatsnew/3.12.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 1bc8a878da8da1..72277a023b3b2e 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -716,7 +716,7 @@ importlib.resources * :func:`importlib.resources.as_file` now supports resource directories. (Contributed by Jason R. Coombs in :gh:`97930`.) -* Rename first parameter of :func:`importlib.resources.files` to *anchor* . +* Rename first parameter of :func:`importlib.resources.files` to *anchor*. (Contributed by Jason R. Coombs in :gh:`100598`.) inspect