diff options
author | Guido van Rossum <guido@python.org> | 2000-09-25 14:42:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-25 14:42:33 (GMT) |
commit | 4126736791ebf27eb803cf04d19ba518667e94fa (patch) | |
tree | 319009c0eb41cbd52a3649374e75c842cb591288 | |
parent | 6d4addd1f47d3f74e2fbdee126f3f16a464f1198 (diff) | |
download | cpython-4126736791ebf27eb803cf04d19ba518667e94fa.zip cpython-4126736791ebf27eb803cf04d19ba518667e94fa.tar.gz cpython-4126736791ebf27eb803cf04d19ba518667e94fa.tar.bz2 |
When reading the file, option names were not passed through
self.optionxform(), which (in the default case) caused options spelled
with opper case letters in their name to be inaccessible. Reported by
"Todd R. Palmer" <t2palmer@bellsouth.net> on
activepython@listserv1.ActiveState.com.
-rw-r--r-- | Lib/ConfigParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index e7636b9..16d18d2 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -440,7 +440,7 @@ class ConfigParser: # allow empty values if optval == '""': optval = '' - cursect[optname] = optval + cursect[self.optionxform(optname)] = optval else: # a non-fatal parsing error occurred. set up the # exception but keep going. the exception will be |