[Python-checkins] bpo-35202: Remove more unused imports in idlelib (GH-10573)

Miss Islington (bot) webhook-mailer at python.org
Sat Nov 17 01:48:45 EST 2018


https://github.com/python/cpython/commit/3a600d224c1e1106756cc71639232ae1acae45bd
commit: 3a600d224c1e1106756cc71639232ae1acae45bd
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-11-16T22:48:40-08:00
summary:

bpo-35202: Remove more unused imports in idlelib (GH-10573)

(cherry picked from commit 5a087d5401e6956cf4c6d95f15fedabf39a4f5af)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్  రెడ్డి తాటిపర్తి) <thatiparthysreenivas at gmail.com>

files:
M Lib/idlelib/idle_test/test_browser.py
M Lib/idlelib/idle_test/test_config_key.py
M Lib/idlelib/idle_test/test_configdialog.py
M Lib/idlelib/idle_test/test_zoomheight.py

diff --git a/Lib/idlelib/idle_test/test_browser.py b/Lib/idlelib/idle_test/test_browser.py
index 905dc1f47e34..dfbab6dd6b5e 100644
--- a/Lib/idlelib/idle_test/test_browser.py
+++ b/Lib/idlelib/idle_test/test_browser.py
@@ -11,7 +11,6 @@
 import pyclbr
 from tkinter import Tk
 
-from idlelib import filelist
 from idlelib.tree import TreeNode
 
 
diff --git a/Lib/idlelib/idle_test/test_config_key.py b/Lib/idlelib/idle_test/test_config_key.py
index 5031daadee0a..abe574912c55 100644
--- a/Lib/idlelib/idle_test/test_config_key.py
+++ b/Lib/idlelib/idle_test/test_config_key.py
@@ -5,7 +5,7 @@
 import unittest
 from tkinter import Tk
 from idlelib.idle_test.mock_idle import Func
-from idlelib.idle_test.mock_tk import Var, Mbox_func
+from idlelib.idle_test.mock_tk import Mbox_func
 
 
 class ValidationTest(unittest.TestCase):
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py
index dbfcd01c63ea..5472a04c187c 100644
--- a/Lib/idlelib/idle_test/test_configdialog.py
+++ b/Lib/idlelib/idle_test/test_configdialog.py
@@ -8,7 +8,7 @@
 import unittest
 from unittest import mock
 from idlelib.idle_test.mock_idle import Func
-from tkinter import Tk, Frame, StringVar, IntVar, BooleanVar, DISABLED, NORMAL
+from tkinter import Tk, StringVar, IntVar, BooleanVar, DISABLED, NORMAL
 from idlelib import config
 from idlelib.configdialog import idleConf, changes, tracers
 
diff --git a/Lib/idlelib/idle_test/test_zoomheight.py b/Lib/idlelib/idle_test/test_zoomheight.py
index bac86ac249f6..aa5bdfb4fbd4 100644
--- a/Lib/idlelib/idle_test/test_zoomheight.py
+++ b/Lib/idlelib/idle_test/test_zoomheight.py
@@ -4,7 +4,7 @@
 from idlelib import zoomheight
 import unittest
 from test.support import requires
-from tkinter import Tk, Text
+from tkinter import Tk
 from idlelib.editor import EditorWindow
 
 



More information about the Python-checkins mailing list