mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-22 07:31:55 +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):
|
||||
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.start()
|
||||
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):
|
||||
mkdir(path)
|
||||
if not access(path, R_OK):
|
||||
|
@ -43,7 +43,7 @@ class MockPipeConnector(ProxyPipeConnector):
|
||||
self.reader_events, self.writer_events = [], []
|
||||
super().__init__(path, connector)
|
||||
|
||||
def build_observer(self, path):
|
||||
def _build_observer(self, path):
|
||||
return MockObserver()
|
||||
|
||||
def build_reader(self, path):
|
||||
|
Loading…
Reference in New Issue
Block a user