def unbuffered_lines(istream):
    l = istream.readline()
    while l:
        yield l
        l = istream.readline()
Read from the stream using the less-buffered readline() method.
dataset/ETHPy150Open larsyencken/anytop/anytop/common.py/unbuffered_lines