Skip to content

Commit d0bd221

Browse files
Remove unused imports
1 parent 36ef3bf commit d0bd221

26 files changed

+8
-38
lines changed

Lib/ctypes/_layout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
import sys
8-
import warnings
98
import struct
109

1110
from _ctypes import CField, buffer_info

Lib/pkgutil.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import os
99
import os.path
1010
import sys
11-
from types import ModuleType
12-
import warnings
1311

1412
__all__ = [
1513
'get_importer', 'iter_importers',

Lib/test/test_asyncio/test_events.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import unittest
2323
from unittest import mock
2424
import weakref
25-
import warnings
2625
if sys.platform not in ('win32', 'vxworks'):
2726
import tty
2827

@@ -36,7 +35,6 @@
3635
from test.support import socket_helper
3736
from test.support import threading_helper
3837
from test.support import ALWAYS_EQ, LARGEST, SMALLEST
39-
from test.support import warnings_helper
4038

4139
def tearDownModule():
4240
asyncio._set_event_loop_policy(None)

Lib/test/test_asyncio/test_streams.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
"""Tests for streams.py."""
22

33
import gc
4-
import os
54
import queue
65
import pickle
76
import socket
8-
import sys
97
import threading
108
import unittest
119
from unittest import mock
12-
import warnings
1310
try:
1411
import ssl
1512
except ImportError:
1613
ssl = None
1714

1815
import asyncio
1916
from test.test_asyncio import utils as test_utils
20-
from test.support import requires_subprocess, socket_helper
17+
from test.support import socket_helper
2118

2219

2320
def tearDownModule():

Lib/test/test_asyncio/test_unix_events.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
import socket
1111
import stat
1212
import sys
13-
import threading
1413
import time
1514
import unittest
1615
from unittest import mock
17-
import warnings
1816

1917
from test import support
2018
from test.support import os_helper
@@ -27,7 +25,6 @@
2725

2826

2927
import asyncio
30-
from asyncio import log
3128
from asyncio import unix_events
3229
from test.test_asyncio import utils as test_utils
3330

Lib/test/test_asyncio/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import threading
1515
import unittest
1616
import weakref
17-
import warnings
1817
from ast import literal_eval
1918
from unittest import mock
2019

Lib/test/test_builtin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import random
1717
import re
1818
import sys
19-
import textwrap
2019
import traceback
2120
import types
2221
import typing

Lib/test/test_bytes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import copy
1212
import functools
1313
import pickle
14-
import sysconfig
1514
import tempfile
1615
import textwrap
1716
import threading

Lib/test/test_call.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22
from test.support import (cpython_only, is_wasi, requires_limited_api, Py_DEBUG,
3-
set_recursion_limit, skip_on_s390x, exceeds_recursion_limit, skip_emscripten_stack_overflow, skip_wasi_stack_overflow,
3+
set_recursion_limit, skip_on_s390x, skip_emscripten_stack_overflow, skip_wasi_stack_overflow,
44
skip_if_sanitizer, import_helper)
55
try:
66
import _testcapi

Lib/test/test_capi/test_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Tests PyConfig_Get() and PyConfig_Set() C API (PEP 741).
33
"""
4-
import os
54
import sys
65
import sysconfig
76
import types

0 commit comments

Comments
 (0)