]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-84623: Remove unused imports in stdlib (GH-94313)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 27 Jun 2022 04:13:49 +0000 (21:13 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 04:13:49 +0000 (21:13 -0700)
GH-93773

Backport only for 2 idlelib files.
Cherrypicked from  259dd71c32a42708a2800c72898e2664a33fda9c
(cherry picked from commit bc8d81a8febd26e7d02e26f46532aeb7ecbd55be)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/configdialog.py
Lib/idlelib/util.py

index 6d0893680274b3cfed1ecfacf66c0810356816e1..4c89c27e0c0d617a8808c5d907768d0f9a6974c9 100644 (file)
@@ -11,7 +11,7 @@ Refer to comments in EditorWindow autoindent code for details.
 """
 import re
 
-from tkinter import (Toplevel, Listbox, Scale, Canvas,
+from tkinter import (Toplevel, Listbox, Canvas,
                      StringVar, BooleanVar, IntVar, TRUE, FALSE,
                      TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE,
                      NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW,
index 5480219786bca663fad6163a9de77901697fcde3..ede670a4db5536028b6e263eafab40e56537cacf 100644 (file)
@@ -12,7 +12,6 @@ TODO:
     * std streams (pyshell, run),
     * warning stuff (pyshell, run).
 """
-from os import path
 
 # .pyw is for Windows; .pyi is for stub files.
 py_extensions = ('.py', '.pyw', '.pyi')  # Order needed for open/save dialogs.