Skip to content

Commit 19601ef

Browse files
authored
gh-109653: Remove unused imports in the Lib/ directory (#109803)
1 parent 649768f commit 19601ef

File tree

20 files changed

+6
-25
lines changed

20 files changed

+6
-25
lines changed

Lib/asyncio/tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import itertools
1818
import math
1919
import types
20-
import warnings
2120
import weakref
2221
from types import GenericAlias
2322

Lib/test/mapping_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# tests common to dict and UserDict
22
import unittest
33
import collections
4-
import sys
54
from test.support import Py_C_RECURSION_LIMIT
65

76

Lib/test/support/interpreters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import _xxinterpchannels as _channels
66

77
# aliases:
8-
from _xxsubinterpreters import is_shareable, RunFailedError
8+
from _xxsubinterpreters import is_shareable
99
from _xxinterpchannels import (
1010
ChannelError, ChannelNotFoundError, ChannelEmptyError,
1111
)

Lib/test/test_asyncio/test_eager_task_factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from unittest import mock
88
from asyncio import tasks
99
from test.test_asyncio import utils as test_utils
10-
import test.support
1110
from test.support.script_helper import assert_python_ok
1211

1312
MOCK_ANY = mock.ANY

Lib/test/test_capi/test_abstract.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import unittest
2-
import sys
32
from collections import OrderedDict
4-
from test import support
5-
from test.support import import_helper
63
import _testcapi
74

85

Lib/test/test_capi/test_dict.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import unittest
2-
import sys
32
from collections import OrderedDict, UserDict
43
from types import MappingProxyType
5-
from test import support
6-
from test.support import import_helper
74
import _testcapi
85

96

Lib/test/test_capi/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# these are all functions _testcapi exports whose name begins with 'test_'.
33

44
import _thread
5-
from collections import OrderedDict, deque
5+
from collections import deque
66
import contextlib
77
import importlib.machinery
88
import importlib.util

Lib/test/test_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import gc
1111
import pickle
1212
from test import support
13-
from test.support import warnings_helper, import_helper, check_disallow_instantiation
13+
from test.support import import_helper, check_disallow_instantiation
1414
from itertools import permutations
1515
from textwrap import dedent
1616
from collections import OrderedDict

Lib/test/test_decimal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
darwin_malloc_err_warning, is_emscripten)
4242
from test.support.import_helper import import_fresh_module
4343
from test.support import threading_helper
44-
from test.support import warnings_helper
4544
import random
4645
import inspect
4746
import threading

Lib/test/test_dictviews.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import collections.abc
22
import copy
33
import pickle
4-
import sys
54
import unittest
65
from test.support import Py_C_RECURSION_LIMIT
76

0 commit comments

Comments
 (0)