Skip to content

Commit 0f885ff

Browse files
authored
gh-105407: Remove unused imports (#105554)
1 parent 58e4b69 commit 0f885ff

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

Lib/test/test___all__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def test_all(self):
101101
])
102102

103103
# In case _socket fails to build, make this test fail more gracefully
104-
# than an AttributeError somewhere deep in CGIHTTPServer.
104+
# than an AttributeError somewhere deep in concurrent.futures, email
105+
# or unittest.
105106
import _socket
106107

107108
ignored = []

Lib/test/test_capi/test_unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def test_from_format(self):
329329
pythonapi, py_object, sizeof,
330330
c_int, c_long, c_longlong, c_ssize_t,
331331
c_uint, c_ulong, c_ulonglong, c_size_t, c_void_p,
332-
sizeof, c_wchar, c_wchar_p)
332+
c_wchar, c_wchar_p)
333333
name = "PyUnicode_FromFormat"
334334
_PyUnicode_FromFormat = getattr(pythonapi, name)
335335
_PyUnicode_FromFormat.argtypes = (c_char_p,)

Lib/test/test_urllib2_localnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from test import support
1212
from test.support import hashlib_helper
1313
from test.support import threading_helper
14-
from test.support import warnings_helper
1514

1615
try:
1716
import ssl

Lib/webbrowser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import sys
99
import subprocess
1010
import threading
11-
import warnings
1211

1312
__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
1413

Misc/python-config.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Keep this script in sync with python-config.sh.in
55

66
import getopt
7-
import os
87
import sys
98
import sysconfig
109

0 commit comments

Comments
 (0)