mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Small fixes by Petru Paler (patch #100946) checked in with esr's approval.
This commit is contained in:
parent
d372521ec0
commit
ff4df6d6fb
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue