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

Method RemoveOption

Lib/idlelib/config.py:101–108  ·  view source on GitHub ↗

Return True if option is removed from section, else False. False if either section does not exist or did not have option.

(self, section, option)

Source from the content-addressed store, hash-verified

99 return True
100
101 def RemoveOption(self, section, option):
102 """Return True if option is removed from section, else False.
103
104 False if either section does not exist or did not have option.
105 """
106 if self.has_section(section):
107 return self.remove_option(section, option)
108 return False
109
110 def AddSection(self, section):
111 "If section doesn't exist, add it."

Callers 3

save_optionMethod · 0.80
set_extension_valueMethod · 0.80
test_remove_optionMethod · 0.80

Calls 2

has_sectionMethod · 0.80
remove_optionMethod · 0.45

Tested by 1

test_remove_optionMethod · 0.64