]> granicus.if.org Git - python/commitdiff
bpo-35660: Fix imports in idlelib.window (#11434)
authorCheryl Sabella <cheryl.sabella@gmail.com>
Sun, 6 Jan 2019 20:55:52 +0000 (15:55 -0500)
committerTerry Jan Reedy <tjreedy@udel.edu>
Sun, 6 Jan 2019 20:55:52 +0000 (15:55 -0500)
* bpo-35660: IDLE: Remove * import from window.py

* sys was being imported through the *, so also added an import sys.

* Update 2019-01-04-19-14-29.bpo-35660.hMxI7N.rst

Anyone who wants details can check the issue, where I added the point about the sys import bug.

Lib/idlelib/window.py
Misc/NEWS.d/next/IDLE/2019-01-04-19-14-29.bpo-35660.hMxI7N.rst [new file with mode: 0644]

index b2488b28cabe7ef363eafcf77f972e9af5458cf8..460d5b67948dde2e1eee32fa548fdd289e3512de 100644 (file)
@@ -1,4 +1,5 @@
-from tkinter import *
+from tkinter import Toplevel, TclError
+import sys
 
 
 class WindowList:
diff --git a/Misc/NEWS.d/next/IDLE/2019-01-04-19-14-29.bpo-35660.hMxI7N.rst b/Misc/NEWS.d/next/IDLE/2019-01-04-19-14-29.bpo-35660.hMxI7N.rst
new file mode 100644 (file)
index 0000000..1ad83fe
--- /dev/null
@@ -0,0 +1 @@
+Fix imports in idlelib.window.