Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9498e2

Browse files
srinivasreddyserhiy-storchaka
authored andcommitted
bpo-35202: Remove unused imports in Lib directory. (GH-10446)
1 parent 43a74ab commit b9498e2

7 files changed

Lines changed: 0 additions & 9 deletions

File tree

Lib/lib2to3/pgen2/driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
__all__ = ["Driver", "load_grammar"]
1717

1818
# Python imports
19-
import codecs
2019
import io
2120
import os
2221
import logging

Lib/lib2to3/pgen2/grammar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"""
1414

1515
# Python imports
16-
import collections
1716
import pickle
1817

1918
# Local imports

Lib/multiprocessing/popen_fork.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32
import signal
43

54
from . import util

Lib/test/test_collections.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
import collections
44
import copy
55
import doctest
6-
import keyword
76
import operator
87
import pickle
98
from random import choice, randrange
10-
import re
119
import string
1210
import sys
1311
from test import support

Lib/test/test_queue.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Some simple queue module tests, plus some failure conditions
22
# to ensure the Queue locks remain stable.
3-
import collections
43
import itertools
54
import queue
65
import random
7-
import sys
86
import threading
97
import time
108
import unittest

Lib/test/test_sys.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import gc
1111
import sysconfig
1212
import locale
13-
import threading
1413

1514
# count the number of test runs, used to create unique
1615
# strings to intern in test_intern()

Lib/test/test_thread.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from test import support
55
import _thread as thread
66
import time
7-
import sys
87
import weakref
98

109
from test import lock_tests

0 commit comments

Comments
 (0)