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

Fred L. Drake fdrake@users.sourceforge.net
2001年7月06日 10:22:50 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7578/Lib
Modified Files:
	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.33
diff -C2 -r1.32 -r1.33
*** ConfigParser.py	2001年02月26日 21:55:34	1.32
--- ConfigParser.py	2001年07月06日 17:22:48	1.33
***************
*** 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:

AltStyle によって変換されたページ (->オリジナル) /