From: Fred Drake Date: Mon, 4 Dec 2000 16:29:13 +0000 (+0000) Subject: remove_option(): Use the right variable name for the option name! X-Git-Tag: v2.1a1~666 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff4a23bbcb08e7dbb48fa8b5cfbafaea11e1f8c7;p=thirdparty%2FPython%2Fcpython.git remove_option(): Use the right variable name for the option name! This closes bug #124324. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 504368752ccd..59bf4b5b7871 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):