def lines_from_stream(chunks):
buf = buffer.DecodingLineBuffer()<EOL>for chunk in chunks:<EOL><INDENT>buf.feed(chunk)<EOL>for _ in buf:<EOL><INDENT>yield _<EOL><DEDENT><DEDENT>
Given data in chunks, yield lines of text