[Python-checkins] [3.11] gh-84623: Remove unused imports in stdlib (#94313)
terryjreedy
webhook-mailer at python.org
Sun Jun 26 23:54:14 EDT 2022
https://github.com/python/cpython/commit/bc8d81a8febd26e7d02e26f46532aeb7ecbd55be
commit: bc8d81a8febd26e7d02e26f46532aeb7ecbd55be
branch: 3.11
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: terryjreedy <tjreedy at udel.edu>
date: 2022-06-26T23:54:10-04:00
summary:
[3.11] gh-84623: Remove unused imports in stdlib (#94313)
#93773
Backport only for 2 idlelib files.
Cherrypicked from 259dd71c32a42708a2800c72898e2664a33fda9c
files:
M Lib/idlelib/configdialog.py
M Lib/idlelib/util.py
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index d5748a64a798b..57eaffeef3962 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -11,7 +11,7 @@
"""
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 5480219786bca..ede670a4db553 100644
--- a/Lib/idlelib/util.py
+++ b/Lib/idlelib/util.py
@@ -12,7 +12,6 @@
* 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.
More information about the Python-checkins
mailing list