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

This commit is contained in:
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) 2018-11-10 12:15:31 +05:30 committed by Terry Jan Reedy
parent 2d1bc537fe
commit 43a74abb3a
7 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -3,7 +3,6 @@
from idlelib import rpc
import unittest
import marshal
class CodePicklerTest(unittest.TestCase):

View file

@ -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,

View file

@ -0,0 +1 @@
Remove unused imports from lib/idlelib