Merge pull request #743 from dbrnz/decode_python3_stdout

Correctly write out a sub-process's `stdout` when using Python 3.
This commit is contained in:
Mathieu Virbel 2018-11-17 00:27:43 +01:00 committed by GitHub
commit d60abf0ff9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: