Skip to content

gh-50720: Copy winerror to URLError on Windows - #161047

Merged
orsenthil merged 1 commit into
python:mainfrom
vasiliyk:gh-50720-winerror
Nov 1, 2026
Merged

orsenthil merged 1 commit into
python:mainfrom
vasiliyk:gh-50720-winerror

Conversation

@vasiliyk

Copy link
Copy Markdown
Contributor

Follow-up to #160938 addressing @orsenthil's review comment.

On Windows, URLError copies winerror from the wrapped OSError.
Windows-only test

I extended the 3.16 versionchanged note and amended the existing NEWS entry for gh-50720.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35551750 | 📁 Comparing df729b6 against main (e7acd6a)

  🔍 Preview build  

2 files changed
± library/urllib.error.html
± whatsnew/changelog.html

@orsenthil
orsenthil enabled auto-merge (squash) November 1, 2026 14:35
@orsenthil
orsenthil merged commit 0fd00ee into python:main Nov 1, 2026
103 of 105 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants