try to read non-line-wise in follow
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 19 Oct 2015 07:23:31 +0000 (09:23 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 19 Oct 2015 07:23:31 +0000 (09:23 +0200)
follow.py

index c35a354..bd14a05 100644 (file)
--- 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