Commit ff4a23bb authored by Fred Drake's avatar Fred Drake

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

This closes bug #124324.
parent cc343caf
...@@ -361,9 +361,9 @@ class ConfigParser: ...@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment