diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2023-01-01 16:07:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 16:07:32 (GMT) |
commit | 447d061bc7b978afedd3b0148715d2153ac726c5 (patch) | |
tree | 428d5a7728ab02bd84ffe8ddccce5f01b0265e8e /Misc | |
parent | ba1342ce998c6c0c36078411d169f29179fbc9f6 (diff) | |
download | cpython-447d061bc7b978afedd3b0148715d2153ac726c5.zip cpython-447d061bc7b978afedd3b0148715d2153ac726c5.tar.gz cpython-447d061bc7b978afedd3b0148715d2153ac726c5.tar.bz2 |
gh-97930: Apply changes from importlib_resources 5.10. (GH-100598)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-12-29-11-45-22.gh-issue-97930.hrtmJe.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-12-29-11-45-22.gh-issue-97930.hrtmJe.rst b/Misc/NEWS.d/next/Library/2022-12-29-11-45-22.gh-issue-97930.hrtmJe.rst new file mode 100644 index 0000000..1fe4a9d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-12-29-11-45-22.gh-issue-97930.hrtmJe.rst @@ -0,0 +1,6 @@ +``importlib.resources.files`` now accepts a module as an anchor instead of +only accepting packages. If a module is passed, resources are resolved +adjacent to that module (in the same package or at the package root). The +parameter was renamed from ``package`` to ``anchor`` with a compatibility +shim for those passing by keyword. Additionally, the new ``anchor`` +parameter is now optional and will default to the caller's module. |