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

Method GetSectionList

Lib/idlelib/config.py:259–273  ·  view source on GitHub ↗

Return sections for configSet configType configuration. configSet must be either 'user' or 'default' configType must be in self.config_types.

(self, configSet, configType)

Source from the content-addressed store, hash-verified

257 self.userCfg[configType].SetOption(section, option, value)
258
259 def GetSectionList(self, configSet, configType):
260 """Return sections for configSet configType configuration.
261
262 configSet must be either 'user' or 'default'
263 configType must be in self.config_types.
264 """
265 if not (configType in self.config_types):
266 raise InvalidConfigType('Invalid configType specified')
267 if configSet == 'user':
268 cfgParser = self.userCfg[configType]
269 elif configSet == 'default':
270 cfgParser=self.defaultCfg[configType]
271 else:
272 raise InvalidConfigSet('Invalid configSet specified')
273 return cfgParser.sections()
274
275 def GetHighlight(self, theme, element):
276 """Return dict of theme element highlight colors.

Callers 15

GetExtensionsMethod · 0.95
load_theme_cfgMethod · 0.80
get_new_theme_nameMethod · 0.80
create_newMethod · 0.80
delete_customMethod · 0.80
load_key_cfgMethod · 0.80
get_new_keys_nameMethod · 0.80
create_new_key_setMethod · 0.80
delete_custom_keysMethod · 0.80
setUpMethod · 0.80
test_delete_customMethod · 0.80

Calls 3

InvalidConfigTypeClass · 0.85
InvalidConfigSetClass · 0.85
sectionsMethod · 0.45

Tested by 8

setUpMethod · 0.64
test_delete_customMethod · 0.64
setUpMethod · 0.64
test_get_section_listMethod · 0.64