

def output_pairs(self):
    for entry in self.iter_tree():
        indent = ((entry['item'].get('depth', 0) - 1) * self.indent)
        if (entry['type'] not in ['system', 'node', 'config']):
            indent += self.hindent
        if (entry['type'] == 'config'):
            indent += self.indent
        type_code = ('%stype' % entry['type'])
        if (type_code not in colors.CODES):
            type_code = 'reset'
        (yield (('%8s' % entry['type']), type_code))
        (yield ('  ', None))
        (yield (indent, None))
        for output in self.formatters.get(entry['type'], self.format_unknown)(entry):
            (yield output)
        (yield ('\n', None))

dataset/ETHPy150Open ohmu/poni/poni/listout.py ListOutput.output_pairs/original