mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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]
|
||||
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…
Add table
Add a link
Reference in a new issue