mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-105407: Remove unused imports (#105554)
This commit is contained in:
parent
58e4b69f69
commit
0f885ffa94
5 changed files with 3 additions and 5 deletions
|
@ -101,7 +101,8 @@ class AllTest(unittest.TestCase):
|
||||||
])
|
])
|
||||||
|
|
||||||
# In case _socket fails to build, make this test fail more gracefully
|
# 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
|
import _socket
|
||||||
|
|
||||||
ignored = []
|
ignored = []
|
||||||
|
|
|
@ -329,7 +329,7 @@ class CAPITest(unittest.TestCase):
|
||||||
pythonapi, py_object, sizeof,
|
pythonapi, py_object, sizeof,
|
||||||
c_int, c_long, c_longlong, c_ssize_t,
|
c_int, c_long, c_longlong, c_ssize_t,
|
||||||
c_uint, c_ulong, c_ulonglong, c_size_t, c_void_p,
|
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"
|
name = "PyUnicode_FromFormat"
|
||||||
_PyUnicode_FromFormat = getattr(pythonapi, name)
|
_PyUnicode_FromFormat = getattr(pythonapi, name)
|
||||||
_PyUnicode_FromFormat.argtypes = (c_char_p,)
|
_PyUnicode_FromFormat.argtypes = (c_char_p,)
|
||||||
|
|
|
@ -11,7 +11,6 @@ import hashlib
|
||||||
from test import support
|
from test import support
|
||||||
from test.support import hashlib_helper
|
from test.support import hashlib_helper
|
||||||
from test.support import threading_helper
|
from test.support import threading_helper
|
||||||
from test.support import warnings_helper
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import ssl
|
import ssl
|
||||||
|
|
|
@ -8,7 +8,6 @@ import shutil
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
import threading
|
import threading
|
||||||
import warnings
|
|
||||||
|
|
||||||
__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
|
__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
# Keep this script in sync with python-config.sh.in
|
# Keep this script in sync with python-config.sh.in
|
||||||
|
|
||||||
import getopt
|
import getopt
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
import sysconfig
|
import sysconfig
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue