diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-13 02:58:42 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-10-13 02:58:42 (GMT) |
commit | 08da46e10f3fb49ecb2d69bc934667e5a352b2a7 (patch) | |
tree | 6586ac27aace6144dbbfa3faf5b67559d96d81ac /Lib/idlelib/PyShell.py | |
parent | c0dc65ef8da3fe2a6543643a5d9d96c7a618cc65 (diff) | |
download | cpython-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-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 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") |