Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff4df6d

Browse files
committed
Small fixes by Petru Paler (patch #100946) checked in with esr's approval.
1 parent d372521 commit ff4df6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/ConfigParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def write(self, fp):
337337
fp.write("%s = %s\n" % (key, value))
338338
fp.write("\n")
339339

340-
def remove_option(section, option):
340+
def remove_option(self, section, option):
341341
"""Remove an option."""
342342
if not section or section == "DEFAULT":
343343
sectdict = self.__defaults
@@ -351,7 +351,7 @@ def remove_option(section, option):
351351
del sectdict[key]
352352
return existed
353353

354-
def remove_section(section):
354+
def remove_section(self, section):
355355
"""Remove a file section."""
356356
if self.__sections.has_key(section):
357357
del self.__sections[section]

0 commit comments

Comments
 (0)