diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-13 02:58:47 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-13 02:58:47 (GMT) |
commit | efc7258377e79cff0ea41f97fa999873325e2fb5 (patch) | |
tree | a2ff7e5fb723a3f475b00e2140d1977f0412feb9 /Lib | |
parent | ed8e3a987e89c2a9c197fc9e6d576defb4b3edab (diff) | |
download | cpython-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-x | Lib/idlelib/PyShell.py | 3 |
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") |