diff --git a/app/pipeclient.py b/app/pipeclient.py index 4ab7eb0..0169989 100755 --- a/app/pipeclient.py +++ b/app/pipeclient.py @@ -160,7 +160,7 @@ class PipeClient(): def _write_pipe_open(self) -> None: """Open _write_pipe.""" - self._write_pipe = open(WRITE_NAME, 'w', encoding='ascii') + self._write_pipe = open(WRITE_NAME, 'w') def _read_thread_start(self) -> None: """Start read_pipe thread.""" @@ -204,7 +204,7 @@ class PipeClient(): """Read FIFO in worker thread.""" # Thread will wait at this read until it connects. # Connection should occur as soon as _write_pipe has connected. - with open(READ_NAME, 'r', encoding='ascii') as read_pipe: + with open(READ_NAME, 'r') as read_pipe: message = '' pipe_ok = True while pipe_ok: