From e92c0e735793366bc203281e0cb8ee7c2cb7f7de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 6 Sep 2019 14:07:44 +0200 Subject: [PATCH] Fix diamond inheritance & missing __init__ parameters --- pipe_io_server/pipe_io_thread.py | 2 +- pipe_io_server/pipe_reader_server.py | 6 +++++- pipe_io_server/pipe_writer_server.py | 6 +++++- setup.py | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pipe_io_server/pipe_io_thread.py b/pipe_io_server/pipe_io_thread.py index 38cea18..cf6f006 100644 --- a/pipe_io_server/pipe_io_thread.py +++ b/pipe_io_server/pipe_io_thread.py @@ -4,7 +4,7 @@ from .terminate_process_on_failure import terminate_process_on_failure class PipeIOThread(Thread): - def __init__(self): + def __init__(self, **kwargs): super().__init__(daemon=True) self._stop_event = Event() self.__io_threads = [] diff --git a/pipe_io_server/pipe_reader_server.py b/pipe_io_server/pipe_reader_server.py index e26bb87..b7917e3 100644 --- a/pipe_io_server/pipe_reader_server.py +++ b/pipe_io_server/pipe_reader_server.py @@ -11,7 +11,11 @@ class PipeReaderServer(PipeIOThread): manage_pipes=True, **kwargs ): - super().__init__(**kwargs) + super().__init__( + permissions=permissions, + manage_pipes=manage_pipes, + **kwargs + ) self._reader_thread = None self._manage_pipes = manage_pipes self._in_pipe = in_pipe diff --git a/pipe_io_server/pipe_writer_server.py b/pipe_io_server/pipe_writer_server.py index 1161917..80a6352 100644 --- a/pipe_io_server/pipe_writer_server.py +++ b/pipe_io_server/pipe_writer_server.py @@ -11,7 +11,11 @@ class PipeWriterServer(PipeIOThread): manage_pipes=True, **kwargs ): - super().__init__(**kwargs) + super().__init__( + permissions=permissions, + manage_pipes=manage_pipes, + **kwargs + ) self._writer_thread = None self._manage_pipes = manage_pipes self._out_pipe = out_pipe diff --git a/setup.py b/setup.py index aa9aa2b..f7bd634 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open('README.md', 'r') as ifile: setup( name='pipe_io_server', - version='1.0.2', + version='1.0.3', author='Kristóf Tóth', author_email='mrtoth@strongds.hu', description='A trivial to use IPC solution based on pipes and newlines',