bpo-35202: Remove unused imports in Lib directory. (GH-10446)
authorSrinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Sat, 10 Nov 2018 07:22:02 +0000 (12:52 +0530)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 10 Nov 2018 07:22:02 +0000 (09:22 +0200)
Lib/lib2to3/pgen2/driver.py
Lib/lib2to3/pgen2/grammar.py
Lib/multiprocessing/popen_fork.py
Lib/test/test_collections.py
Lib/test/test_queue.py
Lib/test/test_sys.py
Lib/test/test_thread.py

index cbc58e759d5374e3980f1402ab708d0888cda59c..6471635a3192dd7028e991b6c79cb15743e5184c 100644 (file)
@@ -16,7 +16,6 @@ __author__ = "Guido van Rossum <guido@python.org>"
 __all__ = ["Driver", "load_grammar"]
 
 # Python imports
-import codecs
 import io
 import os
 import logging
index c00cb2248d5676092c82d9da3f67d9b2f54f67ad..a1da546eee20e12fc29d442835d80bea6379e40c 100644 (file)
@@ -13,7 +13,6 @@ fallback token code OP, but the parser needs the actual token code.
 """
 
 # Python imports
-import collections
 import pickle
 
 # Local imports
index 008b97b366280f19ee3492413bb9f02d771e3eae..685e8daf77ca1f58dafac6cbe1242a7eaf56ae99 100644 (file)
@@ -1,5 +1,4 @@
 import os
-import sys
 import signal
 
 from . import util
index 200e0273c33e86f4dd077671d20726bb73641ea7..e2ffaaafd454242ef0c875f53888dc2bbd195332 100644 (file)
@@ -3,11 +3,9 @@
 import collections
 import copy
 import doctest
-import keyword
 import operator
 import pickle
 from random import choice, randrange
-import re
 import string
 import sys
 from test import support
index 1a8d5f8856c5e86362afaa608f6c36af9de83a56..c8528f97741dccb3e29e4554796775832eeb46f7 100644 (file)
@@ -1,10 +1,8 @@
 # Some simple queue module tests, plus some failure conditions
 # to ensure the Queue locks remain stable.
-import collections
 import itertools
 import queue
 import random
-import sys
 import threading
 import time
 import unittest
index b90366d814452b701d9808f367df1c7d6b148cc7..92aefd8d7af44be48ad2a4b39595bd05581d6226 100644 (file)
@@ -10,7 +10,6 @@ import codecs
 import gc
 import sysconfig
 import locale
-import threading
 
 # count the number of test runs, used to create unique
 # strings to intern in test_intern()
index 64ffe460529816505ff6344baf9c83e7e858d489..f4eb830cf6d746967a9e0934a8adb15de543cad1 100644 (file)
@@ -4,7 +4,6 @@ import random
 from test import support
 import _thread as thread
 import time
-import sys
 import weakref
 
 from test import lock_tests