From: Terry Jan Reedy Date: Mon, 13 Oct 2014 02:58:47 +0000 (-0400) Subject: Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka. X-Git-Tag: v3.4.3rc1~481 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efc7258377e79cff0ea41f97fa999873325e2fb5;p=thirdparty%2FPython%2Fcpython.git 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 514aee6fabd5..6b439885b27c 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")