diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-01 00:38:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 00:38:00 (GMT) |
commit | eb0d359b4b0e14552998e7af771a088b4fd01745 (patch) | |
tree | a05573f729194e3678fb2bd6b119d165d0b82778 /Lib | |
parent | 2935e65c36fab1989bbda19db72c035ea22b044b (diff) | |
download | cpython-eb0d359b4b0e14552998e7af771a088b4fd01745.zip cpython-eb0d359b4b0e14552998e7af771a088b4fd01745.tar.gz cpython-eb0d359b4b0e14552998e7af771a088b4fd01745.tar.bz2 |
bpo-40443: Remove unused imports in stdlib (GH-19815)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/importlib/resources.py | 3 | ||||
-rw-r--r-- | Lib/multiprocessing/pool.py | 1 | ||||
-rw-r--r-- | Lib/ssl.py | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/Lib/importlib/resources.py b/Lib/importlib/resources.py index fc3a1c9..f518865 100644 --- a/Lib/importlib/resources.py +++ b/Lib/importlib/resources.py @@ -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__ = [ diff --git a/Lib/multiprocessing/pool.py b/Lib/multiprocessing/pool.py index b8a0b82..bbe05a5 100644 --- a/Lib/multiprocessing/pool.py +++ b/Lib/multiprocessing/pool.py @@ -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. @@ -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 |