Commit ff4df6d6 authored by Thomas Wouters's avatar Thomas Wouters

Small fixes by Petru Paler (patch #100946) checked in with esr's approval.

parent d372521e
...@@ -337,7 +337,7 @@ class ConfigParser: ...@@ -337,7 +337,7 @@ class ConfigParser:
fp.write("%s = %s\n" % (key, value)) fp.write("%s = %s\n" % (key, value))
fp.write("\n") fp.write("\n")
def remove_option(section, option): def remove_option(self, section, option):
"""Remove an option.""" """Remove an option."""
if not section or section == "DEFAULT": if not section or section == "DEFAULT":
sectdict = self.__defaults sectdict = self.__defaults
...@@ -351,7 +351,7 @@ class ConfigParser: ...@@ -351,7 +351,7 @@ class ConfigParser:
del sectdict[key] del sectdict[key]
return existed return existed
def remove_section(section): def remove_section(self, section):
"""Remove a file section.""" """Remove a file section."""
if self.__sections.has_key(section): if self.__sections.has_key(section):
del self.__sections[section] del self.__sections[section]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment