[Python-checkins] bpo-35202: Remove unused imports in Lib directory (GH-10450)

INADA Naoki webhook-mailer at python.org
Thu Nov 15 07:59:24 EST 2018


https://github.com/python/cpython/commit/70f61b933f5f4bbb28d2c1a2ebf3a555513e67b0
commit: 70f61b933f5f4bbb28d2c1a2ebf3a555513e67b0
branch: master
author: Srinivas  Thatiparthy (శ్రీనివాస్  తాటిపర్తి) <thatiparthysreenivas at gmail.com>
committer: INADA Naoki <methane at users.noreply.github.com>
date: 2018-11-15T21:59:19+09:00
summary:

bpo-35202: Remove unused imports in Lib directory (GH-10450)

files:
M Lib/asyncio/base_events.py
M Lib/test/_test_multiprocessing.py
M Lib/test/test_contextlib.py
M Lib/test/test_regrtest.py
M Lib/test/test_uuid.py

diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 3726c556d4f0..f5ab6e7b2d21 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -18,7 +18,6 @@
 import concurrent.futures
 import heapq
 import itertools
-import logging
 import os
 import socket
 import subprocess
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py
index 7993fcb08e46..4302708c14f1 100644
--- a/Lib/test/_test_multiprocessing.py
+++ b/Lib/test/_test_multiprocessing.py
@@ -5,7 +5,6 @@
 import unittest
 import unittest.mock
 import queue as pyqueue
-import contextlib
 import time
 import io
 import itertools
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py
index 2a44404a603e..755d9b95a677 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -1,6 +1,5 @@
 """Unit tests for contextlib.py, and other context managers."""
 
-import asyncio
 import io
 import sys
 import tempfile
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index f923311f3f20..8c5238066244 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -15,7 +15,6 @@
 import sysconfig
 import tempfile
 import textwrap
-import threading
 import unittest
 from test import libregrtest
 from test import support
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py
index c1b35c4a7f6c..dc502b97ca4e 100644
--- a/Lib/test/test_uuid.py
+++ b/Lib/test/test_uuid.py
@@ -3,7 +3,6 @@
 import builtins
 import contextlib
 import copy
-from functools import partial
 import io
 import os
 import pickle



More information about the Python-checkins mailing list