def structured_iterator(failure_lines):
    """Create FailureLine, Tbpl-formatted-string tuples."""
    summary = partial(failure_line_summary, TbplFormatter())
    for failure_line in failure_lines:
        repr_str = summary(failure_line)
        if repr_str:
            yield failure_line, repr_str

    while True:
        yield None, None
def structured_iterator ( failure_lines ) : summary = partial ( failure_line_summary , TbplFormatter ( ) ) for failure_line in failure_lines : repr_str = summary ( failure_line ) if repr_str : yield failure_line , repr_str while True : yield None , None
Create FailureLine, Tbpl-formatted-string tuples.