@allow_implicit_stop<EOL>def commentless(data):
it = iter(data)<EOL>while True:<EOL><INDENT>line = next(it)<EOL>while "<STR_LIT::>" in line or not line.lstrip().startswith("<STR_LIT:..>"):<EOL><INDENT>yield line<EOL>line = next(it)<EOL><DEDENT>indent = indent_size(line)<EOL>it = itertools.dropwhile(lambda el: indent_size(el) > indent<EOL>or not el.strip(), it)<EOL><DEDENT>
Generator that removes from a list of strings the double dot
reStructuredText comments and its contents based on indentation,
removing trailing empty lines after each comment as well.