Serhiy Storchaka added the comment:
Here is a patch which should fix this issue. The same solution already is used
in restore_file_breaks().
----------
keywords: +patch
Added file: http://bugs.python.org/file36888/issue22614.patch
_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22614>
_______________________________________
diff -r 55d50b544a3d Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py Sun Oct 12 09:53:12 2014 +0200
+++ b/Lib/idlelib/PyShell.py Sun Oct 12 13:32:30 2014 +0300
@@ -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:
+ # can happen if IDLE closes due to the .update() call
+ return
if color:
theme = idleConf.GetOption('main','Theme','name')
cfg = idleConf.GetHighlight(theme, "break")
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com