Skip to content

gh-124098: Fix incorrect inclusion of handler methods without protocol prefix in OpenerDirector #136873

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 3 commits into
base: main
Choose a base branch
from

Conversation

MonadChains
Copy link
Contributor

This resolves GH-124098 an issue where handler methods that did not start with a protocol name but matched a valid base handler method (e.g., _open() or error()) were mistakenly added to OpenerDirector's handlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

urllib.request.OpenerDirector.add_handler() matches too broadly
2 participants