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

Method AddSection

Lib/idlelib/config.py:110–113  ·  view source on GitHub ↗

If section doesn't exist, add it.

(self, section)

Source from the content-addressed store, hash-verified

108 return False
109
110 def AddSection(self, section):
111 "If section doesn't exist, add it."
112 if not self.has_section(section):
113 self.add_section(section)
114
115 def RemoveEmptySections(self):
116 "Remove any sections that have no options."

Callers 7

save_newMethod · 0.80
save_new_key_setMethod · 0.80
test_remove_optionMethod · 0.80
test_add_sectionMethod · 0.80
test_is_emptyMethod · 0.80
test_saveMethod · 0.80

Calls 2

has_sectionMethod · 0.80
add_sectionMethod · 0.45

Tested by 5

test_remove_optionMethod · 0.64
test_add_sectionMethod · 0.64
test_is_emptyMethod · 0.64
test_saveMethod · 0.64