summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-10-13 02:58:42 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-10-13 02:58:42 (GMT)
commit08da46e10f3fb49ecb2d69bc934667e5a352b2a7 (patch)
tree6586ac27aace6144dbbfa3faf5b67559d96d81ac /Lib/idlelib/PyShell.py
parentc0dc65ef8da3fe2a6543643a5d9d96c7a618cc65 (diff)
downloadcpython-08da46e10f3fb49ecb2d69bc934667e5a352b2a7.zip
cpython-08da46e10f3fb49ecb2d69bc934667e5a352b2a7.tar.gz
cpython-08da46e10f3fb49ecb2d69bc934667e5a352b2a7.tar.bz2
Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rwxr-xr-xLib/idlelib/PyShell.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 91e0e82..427d3ce 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")