[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.31,1.32
Fred L. Drake
fdrake@users.sourceforge.net
Mon, 26 Feb 2001 13:55:36 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv26731
Modified Files:
ConfigParser.py
Log Message:
Make sure ConfigParser uses .optionxform() consistently; this affects
.has_option(), .remove_option(), and .set().
This closes SF tracker #232913.
Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** ConfigParser.py 2001/02/14 15:24:17 1.31
--- ConfigParser.py 2001/02/26 21:55:34 1.32
***************
*** 331,334 ****
--- 331,335 ----
return 0
else:
+ option = self.optionxform(option)
return self.__sections[section].has_key(option)
***************
*** 342,345 ****
--- 343,347 ----
except KeyError:
raise NoSectionError(section)
+ option = self.optionxform(option)
sectdict[option] = value
***************
*** 369,372 ****
--- 371,375 ----
except KeyError:
raise NoSectionError(section)
+ option = self.optionxform(option)
existed = sectdict.has_key(option)
if existed: