Commit 41267367 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 6d4addd1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment