]> granicus.if.org Git - python/commitdiff
bpo-35202: Remove unused imports in idlelib (GH-10438)
authorSrinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Sat, 10 Nov 2018 06:45:31 +0000 (12:15 +0530)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sat, 10 Nov 2018 06:45:31 +0000 (01:45 -0500)
Lib/idlelib/codecontext.py
Lib/idlelib/filelist.py
Lib/idlelib/idle_test/test_config.py
Lib/idlelib/idle_test/test_config_key.py
Lib/idlelib/idle_test/test_rpc.py
Lib/idlelib/pyparse.py
Misc/NEWS.d/next/IDLE/2018-11-10-09-10-54.bpo-35202.TeJJrt.rst [new file with mode: 0644]

index 7c88a4d015e358c54f871932efb646a66428cef1..ef8852852d1f808e1d2951427e35a1c54b9a3401 100644 (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
 
index 52628392e6170c3051255374568a3a50a7ac339d..0d200854ef0007a4b11f4e19b83d2e3a304828dd 100644 (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)
index 8c9197284e07e48539363c2f34704d67262f8b8f..169d054efd08a4550054a05b9c31ccd71f630cc3 100644 (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
index 08471666a4529d3999f4908b161e4ad9d4a0cb00..5031daadee0a0adf67a47f8b0f841ba5fa9a888f 100644 (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
index 48be65ba10b9cd20e9d079a7156ec8db7e8a5d57..81eff398c72f45b9cc25546513be2cb861e490b8 100644 (file)
@@ -3,7 +3,6 @@
 from idlelib import rpc
 import unittest
 
-import marshal
 
 
 class CodePicklerTest(unittest.TestCase):
index 1eeb9154d9061049155b5879246608b2b54fd6e7..81e7f539803c08e3737056737d6d9ffbd4615542 100644 (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,
diff --git a/Misc/NEWS.d/next/IDLE/2018-11-10-09-10-54.bpo-35202.TeJJrt.rst b/Misc/NEWS.d/next/IDLE/2018-11-10-09-10-54.bpo-35202.TeJJrt.rst
new file mode 100644 (file)
index 0000000..1824536
--- /dev/null
@@ -0,0 +1 @@
+Remove unused imports from lib/idlelib