]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105407: Remove unused imports (#105554)
authorVictor Stinner <vstinner@python.org>
Fri, 9 Jun 2023 12:50:31 +0000 (14:50 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Jun 2023 12:50:31 +0000 (12:50 +0000)
Lib/test/test___all__.py
Lib/test/test_capi/test_unicode.py
Lib/test/test_urllib2_localnet.py
Lib/webbrowser.py
Misc/python-config.in

index 6b0e2b020d0bc62eb65e58431b0f51f10b7a5109..2163f1636566b79d948df5d02521720315272776 100644 (file)
@@ -101,7 +101,8 @@ class AllTest(unittest.TestCase):
         ])
 
         # In case _socket fails to build, make this test fail more gracefully
-        # than an AttributeError somewhere deep in CGIHTTPServer.
+        # than an AttributeError somewhere deep in concurrent.futures, email
+        # or unittest.
         import _socket
 
         ignored = []
index 9c7662065689ea50dfd5244eaa1ce69ddcaea6a8..ca914459a62becd7cccb59f811f785b246da5604 100644 (file)
@@ -329,7 +329,7 @@ class CAPITest(unittest.TestCase):
             pythonapi, py_object, sizeof,
             c_int, c_long, c_longlong, c_ssize_t,
             c_uint, c_ulong, c_ulonglong, c_size_t, c_void_p,
-            sizeof, c_wchar, c_wchar_p)
+            c_wchar, c_wchar_p)
         name = "PyUnicode_FromFormat"
         _PyUnicode_FromFormat = getattr(pythonapi, name)
         _PyUnicode_FromFormat.argtypes = (c_char_p,)
index 1c5b027931c1f8a9a4b63f4e5e06eee34e4bfc79..0dcdbac76b50f2fe1b516e002441a8e3c594e356 100644 (file)
@@ -11,7 +11,6 @@ import hashlib
 from test import support
 from test.support import hashlib_helper
 from test.support import threading_helper
-from test.support import warnings_helper
 
 try:
     import ssl
index 01a82fb8857cfa6e0605c13b8f38834222092233..4fc9470051c1ad399a50c376778e6195ec8a2503 100755 (executable)
@@ -8,7 +8,6 @@ import shutil
 import sys
 import subprocess
 import threading
-import warnings
 
 __all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
 
index ebd99daa0c2798a34d54797d41c3bdb773918036..81c3316e334a48559d5177abac9f6b133ad0f062 100644 (file)
@@ -4,7 +4,6 @@
 # Keep this script in sync with python-config.sh.in
 
 import getopt
-import os
 import sys
 import sysconfig