bpo-40443: Remove unused imports in stdlib (GH-19815)
This commit is contained in:
parent
2935e65c36
commit
eb0d359b4b
|
@ -8,10 +8,9 @@ from importlib.abc import ResourceLoader
|
||||||
from io import BytesIO, TextIOWrapper
|
from io import BytesIO, TextIOWrapper
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import Iterable, Iterator, Optional, Set, Union # noqa: F401
|
from typing import Iterable, Iterator, Optional, Union # noqa: F401
|
||||||
from typing import cast
|
from typing import cast
|
||||||
from typing.io import BinaryIO, TextIO
|
from typing.io import BinaryIO, TextIO
|
||||||
from zipimport import ZipImportError
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
|
|
@ -22,7 +22,6 @@ import time
|
||||||
import traceback
|
import traceback
|
||||||
import types
|
import types
|
||||||
import warnings
|
import warnings
|
||||||
from queue import Empty
|
|
||||||
|
|
||||||
# If threading is available then ThreadPool should be provided. Therefore
|
# If threading is available then ThreadPool should be provided. Therefore
|
||||||
# we avoid top-level imports which are liable to fail on some systems.
|
# we avoid top-level imports which are liable to fail on some systems.
|
||||||
|
|
|
@ -252,7 +252,7 @@ class _TLSMessageType(_IntEnum):
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
from _ssl import enum_certificates, enum_crls
|
from _ssl import enum_certificates, enum_crls
|
||||||
|
|
||||||
from socket import socket, AF_INET, SOCK_STREAM, create_connection
|
from socket import socket, SOCK_STREAM, create_connection
|
||||||
from socket import SOL_SOCKET, SO_TYPE
|
from socket import SOL_SOCKET, SO_TYPE
|
||||||
import socket as _socket
|
import socket as _socket
|
||||||
import base64 # for DER-to-PEM translation
|
import base64 # for DER-to-PEM translation
|
||||||
|
|
Loading…
Reference in New Issue