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
1 changed files with 2 additions and 2 deletions

View File

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