]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Small fixes by Petru Paler (patch #100946) checked in with esr's approval.
authorThomas Wouters <thomas@python.org>
Fri, 21 Jul 2000 05:19:59 +0000 (05:19 +0000)
committerThomas Wouters <thomas@python.org>
Fri, 21 Jul 2000 05:19:59 +0000 (05:19 +0000)
Lib/ConfigParser.py

index d7a7f9fea979c494a86d8eca8233ebdaca032fb0..e7636b9b855a269d17419c30b7f0ec3e5f98a904 100644 (file)
@@ -337,7 +337,7 @@ class ConfigParser:
                 fp.write("%s = %s\n" % (key, value))
             fp.write("\n")
 
-    def remove_option(section, option):
+    def remove_option(self, section, option):
         """Remove an option."""
         if not section or section == "DEFAULT":
             sectdict = self.__defaults
@@ -351,7 +351,7 @@ class ConfigParser:
             del sectdict[key]
         return existed
 
-    def remove_section(section):
+    def remove_section(self, section):
         """Remove a file section."""
         if self.__sections.has_key(section):
             del self.__sections[section]