summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2022-06-27 03:54:10 (GMT)
committerGitHub <noreply@github.com>2022-06-27 03:54:10 (GMT)
commitbc8d81a8febd26e7d02e26f46532aeb7ecbd55be (patch)
treee8173f05cd5fe0b4eef406970ce42c2e68af8c5f
parent575997af623edc42c26e978d2bf15be39ba0e422 (diff)
downloadcpython-bc8d81a8febd26e7d02e26f46532aeb7ecbd55be.zip
cpython-bc8d81a8febd26e7d02e26f46532aeb7ecbd55be.tar.gz
cpython-bc8d81a8febd26e7d02e26f46532aeb7ecbd55be.tar.bz2
[3.11] gh-84623: Remove unused imports in stdlib (#94313)
#93773 Backport only for 2 idlelib files. Cherrypicked from 259dd71c32a42708a2800c72898e2664a33fda9c
-rw-r--r--Lib/idlelib/configdialog.py2
-rw-r--r--Lib/idlelib/util.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index d5748a6..57eaffe 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -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,
diff --git a/Lib/idlelib/util.py b/Lib/idlelib/util.py
index 5480219..ede670a 100644
--- a/Lib/idlelib/util.py
+++ b/Lib/idlelib/util.py
@@ -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.