From: Terry Jan Reedy Date: Mon, 13 Oct 2014 02:58:42 +0000 (-0400) Subject: Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08da46e10f3fb49ecb2d69bc934667e5a352b2a7;p=python Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index 91e0e828fb..427d3ce72c 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")