MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dumpCfg

Function dumpCfg

tools/python-3.11.9-amd64/Lib/idlelib/config.py:892–903  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

890 #print('***', line, crc, '***') # Uncomment for diagnosis.
891
892 def dumpCfg(cfg):
893 print('\n', cfg, '\n') # Cfg has variable '0xnnnnnnnn' address.
894 for key in sorted(cfg):
895 sections = cfg[key].sections()
896 sprint(key)
897 sprint(sections)
898 for section in sections:
899 options = cfg[key].options(section)
900 sprint(section)
901 sprint(options)
902 for option in options:
903 sprint(option + ' = ' + cfg[key].Get(section, option))
904
905 dumpCfg(idleConf.defaultCfg)
906 dumpCfg(idleConf.userCfg)

Callers 1

_dumpFunction · 0.85

Calls 6

sortedFunction · 0.85
sprintFunction · 0.85
sectionsMethod · 0.80
GetMethod · 0.80
printFunction · 0.50
optionsMethod · 0.45

Tested by

no test coverage detected