From: Thomas Wouters Date: Fri, 21 Jul 2000 05:19:59 +0000 (+0000) Subject: Small fixes by Petru Paler (patch #100946) checked in with esr's approval. X-Git-Tag: v2.0b1~781 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff4df6d6fbeac136053ba4f9b7ac567fbf39e6be;p=thirdparty%2FPython%2Fcpython.git Small fixes by Petru Paler (patch #100946) checked in with esr's approval. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index d7a7f9fea979..e7636b9b855a 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -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]