From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 23 Jul 2019 20:36:57 +0000 (-0700) Subject: bpo-29446: IDLE -- add explicit imports (GH-14919) (#14921) X-Git-Tag: v3.7.5rc1~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aee260f1c4d32bf67edec209d949294d4dc403c1;p=thirdparty%2FPython%2Fcpython.git bpo-29446: IDLE -- add explicit imports (GH-14919) (#14921) Stop depending on tkinter import *. (cherry picked from commit c6fd6c83b70df76421d05a7628367e64a2f83589) Co-authored-by: Terry Jan Reedy --- diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py index 497ee12f1814..35027da76bce 100644 --- a/Lib/idlelib/editor.py +++ b/Lib/idlelib/editor.py @@ -2,7 +2,9 @@ import importlib.abc import importlib.util import os import platform +import re import string +import sys import tokenize import traceback import webbrowser