MCPcopy
hub / github.com/deadc0de6/dotdrop / _debug_dict

Method _debug_dict

dotdrop/cfg_yaml.py:1843–1856  ·  view source on GitHub ↗

pretty print dict

(self, title, elems)

Source from the content-addressed store, hash-verified

1841 self._debug_dict('entry variables', self.variables)
1842
1843 def _debug_dict(self, title, elems):
1844 """pretty print dict"""
1845 if not self._debug:
1846 return
1847 self._dbg(f'{title}:')
1848 if not elems:
1849 return
1850 for k, val in elems.items():
1851 if isinstance(val, dict):
1852 self._dbg(f' - \"{k}\"')
1853 for subkey, sub in val.items():
1854 self._dbg(f' * {subkey}: \"{sub}\"')
1855 else:
1856 self._dbg(f' - \"{k}\": {val}')
1857
1858 def _dbg(self, content):
1859 directory = os.path.basename(os.path.dirname(self._path))

Callers 14

__init__Method · 0.95
_parse_blk_settingsMethod · 0.95
_parse_blk_dotfilesMethod · 0.95
_parse_blk_profilesMethod · 0.95
_parse_blk_actionsMethod · 0.95
_parse_blk_variablesMethod · 0.95
_import_variablesMethod · 0.95
_import_configMethod · 0.95

Calls 1

_dbgMethod · 0.95

Tested by

no test coverage detected