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

Method GetOptionList

Lib/idlelib/config.py:67–72  ·  view source on GitHub ↗

Return a list of options for given section, else [].

(self, section)

Source from the content-addressed store, hash-verified

65 return self.get(section, option, raw=raw)
66
67 def GetOptionList(self, section):
68 "Return a list of options for given section, else []."
69 if self.has_section(section):
70 return self.options(section)
71 else: #return a default value
72 return []
73
74 def Load(self):
75 "Load the configuration file from disk."

Callers 8

test_load_fileMethod · 0.95
RemoveEmptySectionsMethod · 0.80
GetExtensionKeysMethod · 0.80
__GetRawExtensionKeysMethod · 0.80
GetExtensionBindingsMethod · 0.80
load_extensionsMethod · 0.80
test_load_cfg_filesMethod · 0.80

Calls 2

has_sectionMethod · 0.80
optionsMethod · 0.45

Tested by 2

test_load_fileMethod · 0.76
test_load_cfg_filesMethod · 0.64