diff options
author | csabella <cheryl.sabella@gmail.com> | 2017-07-11 19:09:44 -0400 |
---|---|---|
committer | terryjreedy <tjreedy@udel.edu> | 2017-07-11 19:09:44 -0400 |
commit | 6d13b22e3ab262c6b1f068259aebd705e7da316c (patch) | |
tree | 2ddd14edce94edafbd2f8b2d850f2b07b9980000 /Lib/idlelib/configdialog.py | |
parent | f52325598e7a9683787d76a42009fc16790a0089 (diff) | |
download | cpython-git-6d13b22e3ab262c6b1f068259aebd705e7da316c.tar.gz |
bpo-30779: IDLE: fix changes.delete_section calls in configdialog (#2667)
Also improve test of config.ConfigChanges.delete_section.
Original patch by Cheryl Sabella.
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 6dc075fbad..a2cfaab0d0 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() |