def __iter__(self, blocks=None, current_indent=0, spacer=' '):
        blocks = blocks or self.blocks
        for key, values in blocks:
            indentation = spacer * current_indent
            if isinstance(key, list):
                if current_indent:
                    yield ''
                yield indentation + spacer.join(key) + ' {'

                for parameter in values:
                    dumped = self.__iter__([parameter], current_indent + self.indentation)
                    for line in dumped:
                        yield line

                yield indentation + '}'
            else:
                if key == '#':
                    yield spacer * current_indent + key + values
                else:
                    if values is None:
                        yield spacer * current_indent + key + ';'
                    else:
                        yield spacer * current_indent + key + spacer + values + ';'
Return all H2 and H3 nodes in the given document.
dataset/ETHPy150Open letsencrypt/letsencrypt/certbot-nginx/certbot_nginx/nginxparser.py/RawNginxDumper.__iter__--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/lore/tree.py/getHeaders