From 4126736791ebf27eb803cf04d19ba518667e94fa Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 25 Sep 2000 14:42:33 +0000 Subject: [PATCH] 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" on activepython@listserv1.ActiveState.com. --- Lib/ConfigParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index e7636b9b855..16d18d25eb1 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -440,7 +440,7 @@ def __read(self, fp, fpname): # 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