bpo-40443: Remove unused imports in idlelib (GH-19801)
(cherry picked from commit 6900f16d22
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
e07fb669e9
commit
95e208dce5
|
@ -4,7 +4,7 @@ An auto-completion window for IDLE, used by the autocomplete extension
|
|||
import platform
|
||||
|
||||
from tkinter import *
|
||||
from tkinter.ttk import Frame, Scrollbar
|
||||
from tkinter.ttk import Scrollbar
|
||||
|
||||
from idlelib.autocomplete import FILES, ATTRS
|
||||
from idlelib.multicall import MC_SHIFT
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
Dialog for building Tkinter accelerator key bindings
|
||||
"""
|
||||
from tkinter import Toplevel, Listbox, Text, StringVar, TclError
|
||||
from tkinter import Toplevel, Listbox, StringVar, TclError
|
||||
from tkinter.ttk import Frame, Button, Checkbutton, Entry, Label, Scrollbar
|
||||
from tkinter import messagebox
|
||||
import string
|
||||
|
|
|
@ -11,7 +11,7 @@ Refer to comments in EditorWindow autoindent code for details.
|
|||
"""
|
||||
import re
|
||||
|
||||
from tkinter import (Toplevel, Listbox, Text, Scale, Canvas,
|
||||
from tkinter import (Toplevel, Listbox, Scale, Canvas,
|
||||
StringVar, BooleanVar, IntVar, TRUE, FALSE,
|
||||
TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE,
|
||||
NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW,
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
"""Test sidebar, coverage 93%"""
|
||||
import idlelib.sidebar
|
||||
from sys import platform
|
||||
from itertools import chain
|
||||
import unittest
|
||||
import unittest.mock
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
"Test squeezer, coverage 95%"
|
||||
|
||||
from collections import namedtuple
|
||||
from textwrap import dedent
|
||||
from tkinter import Text, Tk
|
||||
import unittest
|
||||
|
|
|
@ -6,7 +6,6 @@ from tkinter import Toplevel, Text, TclError,\
|
|||
from tkinter.ttk import Frame, Scrollbar, Button
|
||||
from tkinter.messagebox import showerror
|
||||
|
||||
from functools import update_wrapper
|
||||
from idlelib.colorizer import color_config
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue