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

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