mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
6d4addd1f4
commit
4126736791
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue