mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue