[Python-bugs-list] [ python-Bugs-561822 ] ConfigParser has_option case sensitive

noreply@sourceforge.net noreply@sourceforge.net
Mon, 17 Jun 2002 10:43:07 -0700


Bugs item #561822, was opened at 2002-05-29 03:01
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=561822&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Taylor (knet)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: ConfigParser has_option case sensitive

Initial Comment:
In python 2.x ConfigParser.py has_option has the
following case-sensitive code:

	if not section or section == "DEFAULT":
		return self.__defaults.has_key(option)

whereas the rest of the module uses option.lower(). 
This means the DEFAULT section is case-sensitive but
other sections are not.

Attached is a patch to fix the problem in Python 2.2.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=561822&group_id=5470