diff Lib/ConfigParser.py @ 18407:9512747afe9e 2.1

When reading a continuation line, make sure we still use the transformed name when filling in the internal data structures, otherwise we incorrectly raise a KeyError. This fixes SF bug #432369.
author Fred Drake <fdrake@acm.org>
date Fri, 06 Jul 2001 17:23:22 +0000
parents b235160f1346
children 7149173e8edc
line wrap: on
line diff
--- a/Lib/ConfigParser.py	Fri Jul 06 17:18:05 2001 +0000
+++ b/Lib/ConfigParser.py	Fri Jul 06 17:23:22 2001 +0000
@@ -431,7 +431,8 @@
             if line[0] in ' \t' and cursect is not None and optname:
                 value = line.strip()
                 if value:
-                    cursect[optname] = cursect[optname] + '\n ' + value
+                    k = self.optionxform(optname)
+                    cursect[k] = "%s\n%s" % (cursect[k], value)
             # a section header or option header?
             else:
                 # is it a section header?