]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40443: Remove unused imports in stdlib (GH-19815)
authorVictor Stinner <vstinner@python.org>
Fri, 1 May 2020 00:38:00 +0000 (02:38 +0200)
committerGitHub <noreply@github.com>
Fri, 1 May 2020 00:38:00 +0000 (02:38 +0200)
Lib/importlib/resources.py
Lib/multiprocessing/pool.py
Lib/ssl.py

index fc3a1c9cabe636bb88be89c27225ebf66a8e5967..f51886557466c745ccebb69d7d0cc972590f1470 100644 (file)
@@ -8,10 +8,9 @@ from importlib.abc import ResourceLoader
 from io import BytesIO, TextIOWrapper
 from pathlib import Path
 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.io import BinaryIO, TextIO
-from zipimport import ZipImportError
 
 
 __all__ = [
index b8a0b827635f07ae53d33579e674cb171eaba716..bbe05a550c349cdaaf32f2d849a5b56aaed9a583 100644 (file)
@@ -22,7 +22,6 @@ import time
 import traceback
 import types
 import warnings
-from queue import Empty
 
 # If threading is available then ThreadPool should be provided.  Therefore
 # we avoid top-level imports which are liable to fail on some systems.
index 0726caee49aa579d5eb6d05c01f8aa0b04b17cb5..30f4e5934febf9c89493a43300134a6b3b6fa16b 100644 (file)
@@ -252,7 +252,7 @@ class _TLSMessageType(_IntEnum):
 if sys.platform == "win32":
     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
 import socket as _socket
 import base64        # for DER-to-PEM translation