open pipeReader as a binary file

This commit is contained in:
Kayou 2021-09-17 15:00:13 +02:00 committed by GitHub
parent b3b74530da
commit 4eb60dac12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ class LogPipe(threading.Thread):
self.log_callback = log_callback self.log_callback = log_callback
self.fdRead, self.fdWrite = os.pipe() self.fdRead, self.fdWrite = os.pipe()
self.pipeReader = os.fdopen(self.fdRead) self.pipeReader = os.fdopen(self.fdRead, "rb")
self.queue = queue self.queue = queue