]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-35660: Fix imports in idlelib.window (GH-11434)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 6 Jan 2019 21:13:30 +0000 (13:13 -0800)
committerGitHub <noreply@github.com>
Sun, 6 Jan 2019 21:13:30 +0000 (13:13 -0800)
* 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.
(cherry picked from commit 11303dd6035a7d7f78025ce5a3e3b9bdf7380c9a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
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.