Correctly write out a sub-process's stdout when using Python 3.

This commit is contained in:
David Brooks 2018-11-10 17:40:42 +13:00
parent 4e87eaa795
commit 58bec60ecd

View file

@ -311,7 +311,7 @@ class Buildozer(object):
ret_stdout.append(chunk)
if show_output:
if IS_PY3:
stdout.write(str(chunk))
stderr.write(chunk.decode('utf-8'))
else:
stdout.write(chunk)
if fd_stderr in readx: