MCPcopy Index your code
hub / github.com/python/cpython / remove_section

Method remove_section

Lib/configparser.py:1009–1015  ·  view source on GitHub ↗

Remove a file section.

(self, section)

Source from the content-addressed store, hash-verified

1007 return existed
1008
1009 def remove_section(self, section):
1010 """Remove a file section."""
1011 existed = section in self._sections
1012 if existed:
1013 del self._sections[section]
1014 del self._proxies[section]
1015 return existed
1016
1017 def __getitem__(self, key):
1018 if key != self.default_section and not self.has_section(key):

Callers 15

__delitem__Method · 0.95
basic_testMethod · 0.80
RemoveEmptySectionsMethod · 0.80
save_allMethod · 0.80
delete_sectionMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
test_builtin_nameMethod · 0.80
test_saveMethod · 0.80
test_get_extensionsMethod · 0.80

Calls

no outgoing calls

Tested by 15

basic_testMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
test_builtin_nameMethod · 0.64
test_saveMethod · 0.64
test_get_extensionsMethod · 0.64