https://github.com/python/cpython/commit/d6dd64ac654898b4ce713c16c49eadb0c6e9d7dc
commit: d6dd64ac654898b4ce713c16c49eadb0c6e9d7dc
branch: main
author: sobolevn <[email protected]>
committer: sobolevn <[email protected]>
date: 2025-10-12T01:52:01+03:00
summary:
gh-138044: Fix `importlib.resources.files` deprecation docs (#139632)
files:
M Doc/library/importlib.resources.rst
M Doc/whatsnew/3.15.rst
diff --git a/Doc/library/importlib.resources.rst
b/Doc/library/importlib.resources.rst
index 8cb43f0625fc79..20297f9fe307b5 100644
--- a/Doc/library/importlib.resources.rst
+++ b/Doc/library/importlib.resources.rst
@@ -72,8 +72,12 @@ for example, a package and its resources can be imported
from a zip file using
.. versionadded:: 3.9
- .. deprecated-removed:: 3.12 3.15
- *package* parameter was renamed to *anchor*. *anchor* can now be a
+ .. versionchanged:: 3.12
+ *package* parameter was renamed to *anchor*.
+ *package* was still accepted, but deprecated.
+
+ .. versionchanged:: 3.15
+ *package* parameter was fully removed. *anchor* can now be a
non-package module and if omitted will default to the caller's module.
*package* is no longer accepted since Python 3.15. Consider passing the
anchor positionally or using ``importlib_resources >= 5.10`` for a
diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index 40286d4fe857e8..a6be27162965ea 100644
--- a/Doc/whatsnew/3.15.rst
+++ b/Doc/whatsnew/3.15.rst
@@ -696,6 +696,14 @@ http.server
(Contributed by Bénédikt Tran in :gh:`133810`.)
+importlib.resources
+-------------------
+
+* Removed deprecated ``package`` parameter
+ from :func:`importlib.resources.files` function.
+ (Contributed by Semyon Moroz in :gh:`138044`)
+
+
pathlib
-------
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]