bpo-30779: IDLE: fix changes.delete_section calls in configdialog (#2667)

Also improve test of config.ConfigChanges.delete_section.
Original patch by Cheryl Sabella.
This commit is contained in:
csabella 2017-07-11 19:09:44 -04:00 committed by terryjreedy
parent f52325598e
commit 6d13b22e3a
3 changed files with 9 additions and 5 deletions

View file

@ -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()