MCPcopy Index your code
hub / github.com/RustPython/RustPython / 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 2

__delitem__Method · 0.95
basic_testMethod · 0.80

Calls

no outgoing calls

Tested by 1

basic_testMethod · 0.64