[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.23,1.24
Fred L. Drake
python-dev@python.org
Mon, 4 Dec 2000 08:29:16 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv23670
Modified Files:
ConfigParser.py
Log Message:
remove_option(): Use the right variable name for the option name!
This closes bug #124324.
Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** ConfigParser.py 2000/09/27 22:43:54 1.23
--- ConfigParser.py 2000/12/04 16:29:13 1.24
***************
*** 362,368 ****
except KeyError:
raise NoSectionError(section)
! existed = sectdict.has_key(key)
if existed:
! del sectdict[key]
return existed
--- 362,368 ----
except KeyError:
raise NoSectionError(section)
! existed = sectdict.has_key(option)
if existed:
! del sectdict[option]
return existed