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
|
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
|
||||||
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 @@
|
||||||
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 @@
|
||||||
|
|
||||||
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 @@
|
||||||
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.
|
||||||
_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,
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Remove unused imports from lib/idlelib
|
Loading…
Add table
Add a link
Reference in a new issue