remove_option(): Use the right variable name for the option name!

This closes bug #124324.
This commit is contained in:
Fred Drake 2000-12-04 16:29:13 +00:00
parent cc343caf41
commit ff4a23bbcb

View file

@ -361,9 +361,9 @@ class ConfigParser:
sectdict = self.__sections[section] sectdict = self.__sections[section]
except KeyError: except KeyError:
raise NoSectionError(section) raise NoSectionError(section)
existed = sectdict.has_key(key) existed = sectdict.has_key(option)
if existed: if existed:
del sectdict[key] del sectdict[option]
return existed return existed
def remove_section(self, section): def remove_section(self, section):