mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
remove_option(): Use the right variable name for the option name!
This closes bug #124324.
This commit is contained in:
parent
cc343caf41
commit
ff4a23bbcb
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue