10000 gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97930: Apply changes from importlib_resources 5.10. #100598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add blurb
  • Loading branch information
jaraco committed Dec 29, 2022
commit 9f533cbf99a3c32f06b493a489471657bfafb20c
Original file line number Diff line number Diff line change
@@ -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.
0