diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-21 05:19:59 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-21 05:19:59 (GMT) |
commit | ff4df6d6fbeac136053ba4f9b7ac567fbf39e6be (patch) | |
tree | afddd637df8930f827be8eae4ad204feae1cae7e | |
parent | d372521ec01234c80bfb386a1beed3e717995c71 (diff) | |
download | cpython-ff4df6d6fbeac136053ba4f9b7ac567fbf39e6be.zip cpython-ff4df6d6fbeac136053ba4f9b7ac567fbf39e6be.tar.gz cpython-ff4df6d6fbeac136053ba4f9b7ac567fbf39e6be.tar.bz2 |
Small fixes by Petru Paler (patch #100946) checked in with esr's approval.
-rw-r--r-- | Lib/ConfigParser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index d7a7f9f..e7636b9 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] |