summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>2018-11-10 07:22:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-11-10 07:22:02 (GMT)
commitb9498e2367f21205ed2b9c172665ea6f0a218d27 (patch)
treef3b03cddd87e5c9c8315113efbea3854870f80b0
parent43a74abb3a87092a7fd6c71042eafb977d70d8e0 (diff)
downloadcpython-b9498e2367f21205ed2b9c172665ea6f0a218d27.zip
cpython-b9498e2367f21205ed2b9c172665ea6f0a218d27.tar.gz
cpython-b9498e2367f21205ed2b9c172665ea6f0a218d27.tar.bz2
bpo-35202: Remove unused imports in Lib directory. (GH-10446)
-rw-r--r--Lib/lib2to3/pgen2/driver.py1
-rw-r--r--Lib/lib2to3/pgen2/grammar.py1
-rw-r--r--Lib/multiprocessing/popen_fork.py1
-rw-r--r--Lib/test/test_collections.py2
-rw-r--r--Lib/test/test_queue.py2
-rw-r--r--Lib/test/test_sys.py1
-rw-r--r--Lib/test/test_thread.py1
7 files changed, 0 insertions, 9 deletions
diff --git a/Lib/lib2to3/pgen2/driver.py b/Lib/lib2to3/pgen2/driver.py
index cbc58e7..6471635 100644
--- a/Lib/lib2to3/pgen2/driver.py
+++ b/Lib/lib2to3/pgen2/driver.py
@@ -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
diff --git a/Lib/lib2to3/pgen2/grammar.py b/Lib/lib2to3/pgen2/grammar.py
index c00cb22..a1da546 100644
--- a/Lib/lib2to3/pgen2/grammar.py
+++ b/Lib/lib2to3/pgen2/grammar.py
@@ -13,7 +13,6 @@ fallback token code OP, but the parser needs the actual token code.
"""
# Python imports
-import collections
import pickle
# Local imports
diff --git a/Lib/multiprocessing/popen_fork.py b/Lib/multiprocessing/popen_fork.py
index 008b97b..685e8da 100644
--- a/Lib/multiprocessing/popen_fork.py
+++ b/Lib/multiprocessing/popen_fork.py
@@ -1,5 +1,4 @@
import os
-import sys
import signal
from . import util
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index 200e027..e2ffaaa 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -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
diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py
index 1a8d5f8..c8528f9 100644
--- a/Lib/test/test_queue.py
+++ b/Lib/test/test_queue.py
@@ -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
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index b90366d..92aefd8 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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()
diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
index 64ffe46..f4eb830 100644
--- a/Lib/test/test_thread.py
+++ b/Lib/test/test_thread.py
@@ -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