From: Christian Herdtweck Date: Mon, 19 Oct 2015 07:23:31 +0000 (+0200) Subject: try to read non-line-wise in follow X-Git-Tag: v1.2~99 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=ad51923997dcc8d85c26d75dd7437f019904bb54;p=pyi2ncommon try to read non-line-wise in follow --- diff --git a/follow.py b/follow.py index c35a354..bd14a05 100644 --- a/follow.py +++ b/follow.py @@ -290,13 +290,14 @@ class Follower(object): .format(desc)) # read line from source - line = source.readline() + line = source.read() # was readline(), but try something else + # removed the rstrip() from return if not line: continue # if reach here, we have a new line of text - return source, desc, line.strip(), flags + return source, desc, line, flags # for poll results # end: inf loop # end: Follower._next_line