[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.32,1.32.4.1

Fred L. Drake fdrake@users.sourceforge.net
Fri, 06 Jul 2001 10:23:24 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7784/Lib

Modified Files:
      Tag: release21-maint
	ConfigParser.py 
Log Message:

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.


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.32
retrieving revision 1.32.4.1
diff -C2 -r1.32 -r1.32.4.1
*** ConfigParser.py	2001/02/26 21:55:34	1.32
--- ConfigParser.py	2001/07/06 17:23:22	1.32.4.1
***************
*** 432,436 ****
                  value = line.strip()
                  if value:
!                     cursect[optname] = cursect[optname] + '\n ' + value
              # a section header or option header?
              else:
--- 432,437 ----
                  value = line.strip()
                  if value:
!                     k = self.optionxform(optname)
!                     cursect[k] = "%s\n%s" % (cursect[k], value)
              # a section header or option header?
              else: