From 08da46e10f3fb49ecb2d69bc934667e5a352b2a7 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 12 Oct 2014 22:58:42 -0400 Subject: [PATCH] Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka. --- Lib/idlelib/PyShell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 91e0e828fb4..427d3ce72c3 100755 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -156,6 +156,9 @@ class PyShellEditorWindow(EditorWindow): def color_breakpoint_text(self, color=True): "Turn colorizing of breakpoint text on or off" + if self.io is None: + # possible due to update in restore_file_breaks + return if color: theme = idleConf.GetOption('main','Theme','name') cfg = idleConf.GetHighlight(theme, "break")