remove_option(): Use the right variable name for the option name!
This closes bug #124324.
This commit is contained in:
parent
cc343caf41
commit
ff4a23bbcb
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue