From 4eb60dac12f60e51c68a7e3046d4aa4757edd6d4 Mon Sep 17 00:00:00 2001 From: Kayou Date: Fri, 17 Sep 2021 15:00:13 +0200 Subject: [PATCH] open pipeReader as a binary file --- moulinette/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/utils/process.py b/moulinette/utils/process.py index e5f52b02..41c43633 100644 --- a/moulinette/utils/process.py +++ b/moulinette/utils/process.py @@ -108,7 +108,7 @@ class LogPipe(threading.Thread): self.log_callback = log_callback self.fdRead, self.fdWrite = os.pipe() - self.pipeReader = os.fdopen(self.fdRead) + self.pipeReader = os.fdopen(self.fdRead, "rb") self.queue = queue