mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix import of HTTPError (GH-22304)
Import HTTPError from urllib.error instead of urllib.request.
This commit is contained in:
parent
23ae2c3bac
commit
5fedf71439
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,8 @@ import os
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue