]> granicus.if.org Git - python/commitdiff
remove_option(): Use the right variable name for the option name!
authorFred Drake <fdrake@acm.org>
Mon, 4 Dec 2000 16:29:13 +0000 (16:29 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 4 Dec 2000 16:29:13 +0000 (16:29 +0000)
This closes bug #124324.

Lib/ConfigParser.py

index 504368752ccd0aec7fe8e64dde9222405ce3c1b3..59bf4b5b787127b14a2923d83ecfb2953e585567 100644 (file)
@@ -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):