pretty print dict
(self, title, elems)
| 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)) |
no test coverage detected