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

Function dumpCfg

Lib/idlelib/config.py:893–904  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

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

Callers 1

_dumpFunction · 0.85

Calls 4

sprintFunction · 0.85
GetMethod · 0.80
sectionsMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…