]> granicus.if.org Git - python/commitdiff
bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 23 Jul 2019 20:23:43 +0000 (13:23 -0700)
committerTerry Jan Reedy <tjreedy@udel.edu>
Tue, 23 Jul 2019 20:23:43 +0000 (16:23 -0400)
Stop depending on tkinter import *.
(cherry picked from commit c6fd6c83b70df76421d05a7628367e64a2f83589)

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

index 497ee12f18140e684a299a477aded6c6d4df4b31..35027da76bce2fc8a339f6094b8e503fe8446999 100644 (file)
@@ -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