From: Michael Tremer Date: Sun, 7 May 2017 12:18:27 +0000 (+0200) Subject: shell: Fix tailing logs X-Git-Tag: 0.9.28~1285^2~1349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a680a91c82e7509808aa4d8f88aece38e437dca2;p=pakfire.git shell: Fix tailing logs Anything that is read from a file descriptor is now of the bytes data type. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/shell.py b/src/pakfire/shell.py index fcdf76829..2a4d8955e 100644 --- a/src/pakfire/shell.py +++ b/src/pakfire/shell.py @@ -219,7 +219,7 @@ class ShellExecuteEnvironment(object): # Process output. for s in i_rdy: # Read as much data as possible. - input = s.read() + input = s.read().decode() if input == "": done = True