Skip to content

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

Merged
encukou merged 3 commits into
python: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 into
python:mainfrom
MonadChains:gh-124098/fix_handler_finder

Conversation

@MonadChains

Copy link
Copy Markdown
Contributor

This resolvesGH-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-automationgithub-project-automationBot moved this from Todo to In Progress in SprintDec 18, 2025
@encukou
encukou merged commit 1c544ac into python:mainDec 18, 2025
47 checks passed
@github-project-automationgithub-project-automationBot moved this from In Progress to Done in SprintDec 18, 2025
cocolato pushed a commit to cocolato/cpython that referenced this pull request Dec 18, 2025
Sign up for freeto 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

@MonadChains@encukou@AA-Turner