summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-10-13 02:58:47 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-10-13 02:58:47 (GMT)
commitefc7258377e79cff0ea41f97fa999873325e2fb5 (patch)
treea2ff7e5fb723a3f475b00e2140d1977f0412feb9 /Lib
parented8e3a987e89c2a9c197fc9e6d576defb4b3edab (diff)
downloadcpython-efc7258377e79cff0ea41f97fa999873325e2fb5.zip
cpython-efc7258377e79cff0ea41f97fa999873325e2fb5.tar.gz
cpython-efc7258377e79cff0ea41f97fa999873325e2fb5.tar.bz2
Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib')
-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 514aee6..6b43988 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")