summaryrefslogtreecommitdiffstats
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-04 16:29:13 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-04 16:29:13 (GMT)
commitff4a23bbcb08e7dbb48fa8b5cfbafaea11e1f8c7 (patch)
treebe76480665d47affe01e36911bc70c805f89aaca /Lib/ConfigParser.py
parentcc343caf419c7f29ececd67b6119d1b7c9a6b6be (diff)
downloadcpython-ff4a23bbcb08e7dbb48fa8b5cfbafaea11e1f8c7.zip
cpython-ff4a23bbcb08e7dbb48fa8b5cfbafaea11e1f8c7.tar.gz
cpython-ff4a23bbcb08e7dbb48fa8b5cfbafaea11e1f8c7.tar.bz2
remove_option(): Use the right variable name for the option name!
This closes bug #124324.
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 5043687..59bf4b5 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -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):