Fix diamond inheritance & missing __init__ parameters

This commit is contained in:
Kristóf Tóth 2019-09-06 14:07:44 +02:00
parent 8b6e82be38
commit e92c0e7357
4 changed files with 12 additions and 4 deletions

View File

@ -4,7 +4,7 @@ from .terminate_process_on_failure import terminate_process_on_failure
class PipeIOThread(Thread): class PipeIOThread(Thread):
def __init__(self): def __init__(self, **kwargs):
super().__init__(daemon=True) super().__init__(daemon=True)
self._stop_event = Event() self._stop_event = Event()
self.__io_threads = [] self.__io_threads = []

View File

@ -11,7 +11,11 @@ class PipeReaderServer(PipeIOThread):
manage_pipes=True, manage_pipes=True,
**kwargs **kwargs
): ):
super().__init__(**kwargs) super().__init__(
permissions=permissions,
manage_pipes=manage_pipes,
**kwargs
)
self._reader_thread = None self._reader_thread = None
self._manage_pipes = manage_pipes self._manage_pipes = manage_pipes
self._in_pipe = in_pipe self._in_pipe = in_pipe

View File

@ -11,7 +11,11 @@ class PipeWriterServer(PipeIOThread):
manage_pipes=True, manage_pipes=True,
**kwargs **kwargs
): ):
super().__init__(**kwargs) super().__init__(
permissions=permissions,
manage_pipes=manage_pipes,
**kwargs
)
self._writer_thread = None self._writer_thread = None
self._manage_pipes = manage_pipes self._manage_pipes = manage_pipes
self._out_pipe = out_pipe self._out_pipe = out_pipe

View File

@ -5,7 +5,7 @@ with open('README.md', 'r') as ifile:
setup( setup(
name='pipe_io_server', name='pipe_io_server',
version='1.0.2', version='1.0.3',
author='Kristóf Tóth', author='Kristóf Tóth',
author_email='mrtoth@strongds.hu', author_email='mrtoth@strongds.hu',
description='A trivial to use IPC solution based on pipes and newlines', description='A trivial to use IPC solution based on pipes and newlines',