Skip to content

Commit eb0d359

Browse files
authored
bpo-40443: Remove unused imports in stdlib (GH-19815)
1 parent 2935e65 commit eb0d359

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Lib/importlib/resources.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
from io import BytesIO, TextIOWrapper
99
from pathlib import Path
1010
from types import ModuleType
11-
from typing import Iterable, Iterator, Optional, Set, Union # noqa: F401
11+
from typing import Iterable, Iterator, Optional, Union # noqa: F401
1212
from typing import cast
1313
from typing.io import BinaryIO, TextIO
14-
from zipimport import ZipImportError
1514

1615

1716
__all__ = [

Lib/multiprocessing/pool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import traceback
2323
import types
2424
import warnings
25-
from queue import Empty
2625

2726
# If threading is available then ThreadPool should be provided. Therefore
2827
# we avoid top-level imports which are liable to fail on some systems.

Lib/ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class _TLSMessageType(_IntEnum):
252252
if sys.platform == "win32":
253253
from _ssl import enum_certificates, enum_crls
254254

255-
from socket import socket, AF_INET, SOCK_STREAM, create_connection
255+
from socket import socket, SOCK_STREAM, create_connection
256256
from socket import SOL_SOCKET, SO_TYPE
257257
import socket as _socket
258258
import base64 # for DER-to-PEM translation

0 commit comments

Comments
 (0)