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

Method has_section

Lib/configparser.py:719–724  ·  view source on GitHub ↗

Indicate whether the named section is present in the configuration. The DEFAULT section is not acknowledged.

(self, section)

Source from the content-addressed store, hash-verified

717 self._proxies[section] = SectionProxy(self, section)
718
719 def has_section(self, section):
720 """Indicate whether the named section is present in the configuration.
721
722 The DEFAULT section is not acknowledged.
723 """
724 return section in self._sections
725
726 def options(self, section):
727 """Return a list of option names for the given section name."""

Callers 14

__getitem__Method · 0.95
__delitem__Method · 0.95
__contains__Method · 0.95
test_query_errorsMethod · 0.80
GetOptionListMethod · 0.80
SetOptionMethod · 0.80
RemoveOptionMethod · 0.80
AddSectionMethod · 0.80
GetHighlightMethod · 0.80
GetExtensionKeysMethod · 0.80
__GetRawExtensionKeysMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_query_errorsMethod · 0.64