mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-35202: Remove unused imports in idlelib (GH-10438)
This commit is contained in:
parent
2d1bc537fe
commit
43a74abb3a
7 changed files with 2 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Remove unused imports from lib/idlelib
|
Loading…
Add table
Add a link
Reference in a new issue