diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-12 22:58:47 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-12 22:58:47 -0400 |
commit | efc7258377e79cff0ea41f97fa999873325e2fb5 (patch) | |
tree | a2ff7e5fb723a3f475b00e2140d1977f0412feb9 /Lib/idlelib/PyShell.py | |
parent | ed8e3a987e89c2a9c197fc9e6d576defb4b3edab (diff) | |
download | cpython-git-efc7258377e79cff0ea41f97fa999873325e2fb5.tar.gz |
Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-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 514aee6fab..6b439885b2 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") |