From efc7258377e79cff0ea41f97fa999873325e2fb5 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Sun, 12 Oct 2014 22:58:47 -0400 Subject: 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 514aee6..6b43988 100755 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -151,6 +151,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") -- cgit v0.12