mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-29919: Remove unused imports found by pyflakes (#137)
Make also minor PEP8 coding style fixes on modified imports.
This commit is contained in:
parent
604e74c6be
commit
d6debb24e0
40 changed files with 30 additions and 55 deletions
|
@ -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):
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
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
|
||||
|
|
|
@ -19,7 +19,6 @@ if TkVersion < 8.5:
|
|||
|
||||
from code import InteractiveInterpreter
|
||||
import getopt
|
||||
import io
|
||||
import linecache
|
||||
import os
|
||||
import os.path
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue