Skip to content

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

Merged
encukou merged 3 commits intopython:mainfrom
MonadChains:gh-124098/fix_handler_finder
Dec 18, 2025
Merged

gh-124098: Fix incorrect inclusion of handler methods without protocol prefix in OpenerDirector#136873
encukou merged 3 commits intopython:mainfrom
MonadChains:gh-124098/fix_handler_finder

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.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Sprint 2024 Dec 18, 2025
@encukou encukou merged commit 1c544ac into python:main Dec 18, 2025
47 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sprint 2024 Dec 18, 2025
cocolato pushed a commit to cocolato/cpython that referenced this pull request Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

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

3 participants