From 58bec60ecdb828530a7f1761f12f19b292b669c0 Mon Sep 17 00:00:00 2001 From: David Brooks Date: Sat, 10 Nov 2018 17:40:42 +1300 Subject: [PATCH] Correctly write out a sub-process's `stdout` when using Python 3. --- buildozer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index aa4b440..ea2ca94 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -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: