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

Guido van Rossum python-dev@python.org
Mon, 25 Sep 2000 07:42:35 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19057

Modified Files:
	ConfigParser.py 
Log Message:
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.


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** ConfigParser.py	2000/07/21 05:19:59	1.21
--- ConfigParser.py	2000/09/25 14:42:33	1.22
***************
*** 441,445 ****
                          if optval == '""':
                              optval = ''
!                         cursect[optname] = optval
                      else:
                          # a non-fatal parsing error occurred.  set up the
--- 441,445 ----
                          if optval == '""':
                              optval = ''
!                         cursect[self.optionxform(optname)] = optval
                      else:
                          # a non-fatal parsing error occurred.  set up the