8000 Fix import of HTTPError by srittau · Pull Request #22304 · python/cpython · GitHub
[go: up one dir, main page]

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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/distutils/command/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import io
import hashlib
from base64 import standard_b64encode
from urllib.request import urlopen, Request, HTTPError
from urllib.error import HTTPError
from urllib.request import urlopen, Request
from urllib.parse import urlparse
from distutils.errors import DistutilsError, DistutilsOptionError
from distutils.core import PyPIRCCommand
Expand Down
2 changes: 1 addition & 1 deletion Lib/distutils/tests/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import unittest
import unittest.mock as mock
from urllib.request import HTTPError
from urllib.error import HTTPError

from test.support import run_unittest

Expand Down
0