Skip to content

Fix import of HTTPError #22304

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

Merged
merged 1 commit into from
May 11, 2021
Merged

Conversation

srittau
Copy link
Contributor

@srittau srittau commented Sep 18, 2020

Import HTTPError from urllib.error instead of urllib.request.

This issue was flagged by python/typeshed#2149. It is a minor issue, but helps in the effort to check the standard lib with mypy.

Import HTTPError from urllib.error instead of urllib.request.
@orsenthil orsenthil merged commit 5fedf71 into python:main May 11, 2021
@miss-islington
Copy link
Contributor

Thanks @srittau for the PR, and @orsenthil for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 11, 2021
Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
@bedevere-bot
Copy link

GH-26047 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label May 11, 2021
@bedevere-bot
Copy link

GH-26048 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label May 11, 2021
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 11, 2021
Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
orsenthil pushed a commit that referenced this pull request May 11, 2021
Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
orsenthil pushed a commit that referenced this pull request May 11, 2021
Import HTTPError from urllib.error instead of urllib.request.
(cherry picked from commit 5fedf71)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
@srittau srittau deleted the fix-http-error-import branch May 12, 2021 06:51
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.

5 participants