terry.reedy
2014-10-13 02:59:42 UTC
https://hg.python.org/cpython/rev/d686de84dc10
changeset: 93019:d686de84dc10
branch: 3.4
parent: 93015:a66c05e1cea4
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sun Oct 12 22:58:47 2014 -0400
summary:
Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
files:
Lib/idlelib/PyShell.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -151,6 +151,9 @@
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")
changeset: 93019:d686de84dc10
branch: 3.4
parent: 93015:a66c05e1cea4
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Sun Oct 12 22:58:47 2014 -0400
summary:
Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
files:
Lib/idlelib/PyShell.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -151,6 +151,9 @@
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")
--
Repository URL: https://hg.python.org/cpython
Repository URL: https://hg.python.org/cpython