[Python-checkins] bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920)

Terry Jan Reedy webhook-mailer at python.org
Tue Jul 23 16:23:47 EDT 2019


https://github.com/python/cpython/commit/fc63d5a361f7d20282019cad84336a242c124267
commit: fc63d5a361f7d20282019cad84336a242c124267
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Terry Jan Reedy <tjreedy at udel.edu>
date: 2019-07-23T16:23:43-04:00
summary:

bpo-29446: IDLE -- add explicit imports (GH-14919) (GH-14920)

Stop depending on tkinter import *.
(cherry picked from commit c6fd6c83b70df76421d05a7628367e64a2f83589)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

files:
M Lib/idlelib/editor.py

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.util
 import os
 import platform
+import re
 import string
+import sys
 import tokenize
 import traceback
 import webbrowser



More information about the Python-checkins mailing list