]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-138044: Fix `importlib.resources.files` deprecation docs (#139632)
authorsobolevn <mail@sobolevn.me>
Sat, 11 Oct 2025 22:52:01 +0000 (01:52 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Oct 2025 22:52:01 +0000 (01:52 +0300)
Doc/library/importlib.resources.rst
Doc/whatsnew/3.15.rst

index 8cb43f0625fc79ef0011aff00f6354f6b5ccc67a..20297f9fe307b549864a6fa4ab0737f4f3e37bd1 100644 (file)
@@ -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
index 40286d4fe857e878b5bdfa57d62c132b25f359d2..a6be27162965ea1dd8fd300a17b4bb3f57d5cf8c 100644 (file)
@@ -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
 -------