def getLinesFromLogFile ( stream ) : stream . flush ( ) stream . seek ( 0 ) lines = stream . readlines ( ) return lines
python log file don't wrap lines
Returns all lines written to the passed in stream
def getLinesFromLogFile(stream):
    """
    Returns all lines written to the passed in stream
    """
    stream.flush()
    stream.seek(0)
    lines = stream.readlines()
    return lines