mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-25 05:01:32 +00:00
Make unused but overridden public method protected
This commit is contained in:
parent
aa1112af0e
commit
6c5699cff9
@ -15,12 +15,12 @@ class PipeConnector:
|
|||||||
|
|
||||||
def __init__(self, path):
|
def __init__(self, path):
|
||||||
self.recv_pipes, self.send_pipes = {}, {}
|
self.recv_pipes, self.send_pipes = {}, {}
|
||||||
self.observer = self.build_observer(path)
|
self.observer = self._build_observer(path)
|
||||||
self.observer.on_any_event = self._on_any_event
|
self.observer.on_any_event = self._on_any_event
|
||||||
self.observer.start()
|
self.observer.start()
|
||||||
self._connect_existing_pipes(path)
|
self._connect_existing_pipes(path)
|
||||||
|
|
||||||
def build_observer(self, path): # pylint: disable=no-self-use
|
def _build_observer(self, path): # pylint: disable=no-self-use
|
||||||
if not exists(path):
|
if not exists(path):
|
||||||
mkdir(path)
|
mkdir(path)
|
||||||
if not access(path, R_OK):
|
if not access(path, R_OK):
|
||||||
|
@ -43,7 +43,7 @@ class MockPipeConnector(ProxyPipeConnector):
|
|||||||
self.reader_events, self.writer_events = [], []
|
self.reader_events, self.writer_events = [], []
|
||||||
super().__init__(path, connector)
|
super().__init__(path, connector)
|
||||||
|
|
||||||
def build_observer(self, path):
|
def _build_observer(self, path):
|
||||||
return MockObserver()
|
return MockObserver()
|
||||||
|
|
||||||
def build_reader(self, path):
|
def build_reader(self, path):
|
||||||
|
Loading…
Reference in New Issue
Block a user