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 5043687..59bf4b5 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -361,9 +361,9 @@
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):