Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d372521 commit ff4df6dCopy full SHA for ff4df6d
1 file changed
Lib/ConfigParser.py
@@ -337,7 +337,7 @@ def write(self, fp):
337
fp.write("%s = %s\n" % (key, value))
338
fp.write("\n")
339
340
- def remove_option(section, option):
+ def remove_option(self, section, option):
341
"""Remove an option."""
342
if not section or section == "DEFAULT":
343
sectdict = self.__defaults
@@ -351,7 +351,7 @@ def remove_option(section, option):
351
del sectdict[key]
352
return existed
353
354
- def remove_section(section):
+ def remove_section(self, section):
355
"""Remove a file section."""
356
if self.__sections.has_key(section):
357
del self.__sections[section]
0 commit comments