Skip to content

GH-137426: Remove code deprecation of importlib.abc.ResourceLoader #137567

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brettcannon
Copy link
Member

@brettcannon brettcannon commented Aug 8, 2025

Enough other classes in importlib.abc inherit from the class and the deprecation was to redirect people to TraversableResources. The documentation now makes it clear the class only exists for backwards compatibility.


📚 Documentation preview 📚: https://cpython-previews--137567.org.readthedocs.build/

…ader`

Enough other classes in `importlib.abc` inherit from the class and the deprecation was to redirect people to `TraversableResources`. The documentation now makes it clear the class only exists for backwards compatibility.
@brettcannon
Copy link
Member Author

brettcannon commented Aug 8, 2025

Added @hugovk as a reviewer as I made #137426 a release blocker in case that made sense.

Copy link
Contributor

@ncoghlan ncoghlan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the correct direction to me!

Comment on lines +1 to +3
Remove the code deprecation of importlib.abc.ResourceLoader . It is
documented as deprecated, but left for backwards compatibility with other
classes in importlib.abc.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Remove the code deprecation of importlib.abc.ResourceLoader . It is
documented as deprecated, but left for backwards compatibility with other
classes in importlib.abc.
Remove the code deprecation of ``importlib.abc.ResourceLoader``. It is
documented as deprecated, but left for backwards compatibility with other
classes in ``importlib.abc``.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge needs backport to 3.14 bugs and security fixes topic-importlib type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants