Kaydet (Commit) c6696feb authored tarafından terryjreedy's avatar terryjreedy Kaydeden (comit) GitHub

[3.6] bpo-29919 Remove unused imports from idlelib [GH-137] (#2105)

Part of patch by Victor Stinner.
(cherry-pick from d6debb24)
üst d755d19a
......@@ -29,7 +29,7 @@ from configparser import ConfigParser
import os
import sys
from tkinter.font import Font, nametofont
from tkinter.font import Font
class InvalidConfigType(Exception): pass
class InvalidConfigSet(Exception): pass
......
......@@ -26,7 +26,6 @@ from idlelib import pyparse
from idlelib import query
from idlelib import replace
from idlelib import search
from idlelib import textview
from idlelib import windows
# The default tab setting for a Text widget, in average-width characters.
......
......@@ -3,9 +3,7 @@
Much is tested by opening config dialog live or in test_configdialog.
Coverage: 27%
'''
from sys import modules
from test.support import captured_stderr
from tkinter import Tk
import unittest
from idlelib import config
......
......@@ -6,7 +6,7 @@ from idlelib import config_key
from test.support import requires
requires('gui')
import unittest
from tkinter import Tk, Text
from tkinter import Tk
class GetKeysTest(unittest.TestCase):
......
import unittest
from tkinter import Tk, Text
from idlelib.editor import EditorWindow
from test.support import requires
class Editor_func_test(unittest.TestCase):
def test_filename_to_unicode(self):
......
......@@ -5,7 +5,7 @@ testing skipping of suite when self.needwrapbutton is false.
'''
import unittest
from test.support import requires
from tkinter import Tk, Toplevel, Frame ##, BooleanVar, StringVar
from tkinter import Tk, Frame ##, BooleanVar, StringVar
from idlelib import searchengine as se
from idlelib import searchbase as sdb
from idlelib.idle_test.mock_idle import Func
......
......@@ -24,7 +24,7 @@ import importlib
import os
from sys import executable, platform # Platform is set for one test.
from tkinter import Toplevel, StringVar, W, E, N, S
from tkinter import Toplevel, StringVar, W, E, S
from tkinter.ttk import Frame, Button, Entry, Label
from tkinter import filedialog
from tkinter.font import Font
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment