diff options
author | terryjreedy <tjreedy@udel.edu> | 2017-07-11 23:50:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 23:50:10 (GMT) |
commit | c0179483f13be81910ed73889dcad92528e20ef2 (patch) | |
tree | 256e73f5a012fa4fc8da24a01df698370a122a34 /Lib/idlelib/configdialog.py | |
parent | 675c1adfe5c87573e81fb295ccad7b6cfa03a3ee (diff) | |
download | cpython-c0179483f13be81910ed73889dcad92528e20ef2.zip cpython-c0179483f13be81910ed73889dcad92528e20ef2.tar.gz cpython-c0179483f13be81910ed73889dcad92528e20ef2.tar.bz2 |
[3.6] bpo-30779: IDLE: fix changes.delete_section calls in configdialog (GH-2667) (#2674)
Also improve test of config.ConfigChanges.delete_section.
Original patch by Cheryl Sabella.
(cherry picked from commit 6d13b22)
Diffstat (limited to 'Lib/idlelib/configdialog.py')
-rw-r--r-- | Lib/idlelib/configdialog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index 6dc075f..a2cfaab 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -839,7 +839,7 @@ class ConfigDialog(Toplevel): return self.deactivate_current_config() # Remove key set from changes, config, and file. - changes.remove(keyset_name) + changes.delete_section('keys', keyset_name) # Reload user key set list. item_list = idleConf.GetSectionList('user', 'keys') item_list.sort() @@ -873,7 +873,7 @@ class ConfigDialog(Toplevel): return self.deactivate_current_config() # Remove theme from changes, config, and file. - changes.delete_section('highlight') + changes.delete_section('highlight', theme_name) # Reload user theme list. item_list = idleConf.GetSectionList('user', 'highlight') item_list.sort() |