]> granicus.if.org Git - python/commitdiff
Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 13 Oct 2014 02:58:42 +0000 (22:58 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 13 Oct 2014 02:58:42 +0000 (22:58 -0400)
Lib/idlelib/PyShell.py

index 91e0e828fb4d23d06d0a8e13f73b183f32b2e2ac..427d3ce72c3a413e3a98a5a645afd1236ed2e92b 100755 (executable)
@@ -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")