summaryrefslogtreecommitdiff
path: root/Lib/idlelib/config.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-24 22:08:01 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-24 22:08:01 -0400
commit5acf4e563f598a77824014b3ab697f70815555db (patch)
tree639be5da3deb2e6d9f404a8d9b2ad7bbcd71f525 /Lib/idlelib/config.py
parent3f1057a4b62d8c94ae77f34f950b74a45499b218 (diff)
downloadcpython-git-5acf4e563f598a77824014b3ab697f70815555db.tar.gz
Issue #27821: Fix bug in idlelib.comfig function and add new tests.
Diffstat (limited to 'Lib/idlelib/config.py')
-rw-r--r--Lib/idlelib/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/config.py b/Lib/idlelib/config.py
index f2437a8631..d2f0b139b5 100644
--- a/Lib/idlelib/config.py
+++ b/Lib/idlelib/config.py
@@ -394,7 +394,7 @@ class IdleConf:
'name2' may still be set, but it is ignored.
"""
cfgname = 'highlight' if section == 'Theme' else 'keys'
- default = self.GetOption('main', 'Theme', 'default',
+ default = self.GetOption('main', section, 'default',
type='bool', default=True)
name = ''
if default: