changeset: 102372:8df5200064c4 branch: 3.5 parent: 102369:6b46c1510bfa user: Terry Jan Reedy date: Sat Jul 16 18:26:32 2016 -0400 files: Lib/idlelib/run.py description: Issue #25507: IDLE no longer runs buggy code because of its tkinter imports. Users must include the same imports required to run directly in Python. diff -r 6b46c1510bfa -r 8df5200064c4 Lib/idlelib/run.py --- a/Lib/idlelib/run.py Sat Jul 16 10:44:13 2016 -0700 +++ b/Lib/idlelib/run.py Sat Jul 16 18:26:32 2016 -0400 @@ -19,6 +19,12 @@ import __main__ +for mod in ('simpledialog', 'messagebox', 'font', + 'dialog', 'filedialog', 'commondialog', + 'colorchooser'): + delattr(tkinter, mod) + del sys.modules['tkinter.' + mod] + LOCALHOST = '127.0.0.1' import warnings