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

parent 2d1bc537
......@@ -13,7 +13,7 @@ import re
from sys import maxsize as INFINITY
import tkinter
from tkinter.constants import TOP, LEFT, X, W, SUNKEN
from tkinter.constants import TOP, X, SUNKEN
from idlelib.config import idleConf
......
......@@ -115,7 +115,6 @@ def _test(): # TODO check and convert to htest
from tkinter import Tk
from idlelib.editor import fixwordbreaks
from idlelib.run import fix_scaling
import sys
root = Tk()
fix_scaling(root)
fixwordbreaks(root)
......
......@@ -4,7 +4,6 @@
Much of IdleConf is also exercised by ConfigDialog and test_configdialog.
"""
from idlelib import config
import copy
import sys
import os
import tempfile
......
......@@ -2,7 +2,6 @@
from idlelib import config_key
from test.support import requires
import sys
import unittest
from tkinter import Tk
from idlelib.idle_test.mock_idle import Func
......
......@@ -3,7 +3,6 @@
from idlelib import rpc
import unittest
import marshal
class CodePicklerTest(unittest.TestCase):
......
......@@ -11,7 +11,6 @@ _closere - line that must be followed by dedent.
_chew_ordinaryre - non-special characters.
"""
import re
import sys
# Reason last statement is continued (or C_NONE if it's not).
(C_NONE, C_BACKSLASH, C_STRING_FIRST_LINE,
......
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