Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/idlelib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import os
import sys

from tkinter.font import Font, nametofont
from tkinter.font import Font

class InvalidConfigType(Exception): pass
class InvalidConfigSet(Exception): pass
Expand Down
1 change: 0 additions & 1 deletion Lib/idlelib/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
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.
Expand Down
2 changes: 0 additions & 2 deletions Lib/idlelib/idle_test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/idle_test/test_config_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from test.support import requires
requires('gui')
import unittest
from tkinter import Tk, Text
from tkinter import Tk


class GetKeysTest(unittest.TestCase):
Expand Down
2 changes: 0 additions & 2 deletions Lib/idlelib/idle_test/test_editor.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/idle_test/test_searchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'''
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
Expand Down
2 changes: 1 addition & 1 deletion Lib/idlelib/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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
Expand Down