Skip to content

Commit 43a74ab

Browse files
srinivasreddyterryjreedy
authored andcommitted
bpo-35202: Remove unused imports in idlelib (pythonGH-10438)
1 parent 2d1bc53 commit 43a74ab

File tree

7 files changed

+2
-6
lines changed

7 files changed

+2
-6
lines changed

Lib/idlelib/codecontext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from sys import maxsize as INFINITY
1414

1515
import tkinter
16-
from tkinter.constants import TOP, LEFT, X, W, SUNKEN
16+
from tkinter.constants import TOP, X, SUNKEN
1717

1818
from idlelib.config import idleConf
1919

Lib/idlelib/filelist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def _test(): # TODO check and convert to htest
115115
from tkinter import Tk
116116
from idlelib.editor import fixwordbreaks
117117
from idlelib.run import fix_scaling
118-
import sys
119118
root = Tk()
120119
fix_scaling(root)
121120
fixwordbreaks(root)

Lib/idlelib/idle_test/test_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Much of IdleConf is also exercised by ConfigDialog and test_configdialog.
55
"""
66
from idlelib import config
7-
import copy
87
import sys
98
import os
109
import tempfile

Lib/idlelib/idle_test/test_config_key.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from idlelib import config_key
44
from test.support import requires
5-
import sys
65
import unittest
76
from tkinter import Tk
87
from idlelib.idle_test.mock_idle import Func

Lib/idlelib/idle_test/test_rpc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from idlelib import rpc
44
import unittest
55

6-
import marshal
76

87

98
class CodePicklerTest(unittest.TestCase):

Lib/idlelib/pyparse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
_chew_ordinaryre - non-special characters.
1212
"""
1313
import re
14-
import sys
1514

1615
# Reason last statement is continued (or C_NONE if it's not).
1716
(C_NONE, C_BACKSLASH, C_STRING_FIRST_LINE,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unused imports from lib/idlelib

0 commit comments

Comments
 (0)