Make unused but overridden public method protected

This commit is contained in:
Kristóf Tóth 2019-09-11 20:28:18 -04:00 committed by therealkrispet
parent aa1112af0e
commit 6c5699cff9
2 changed files with 3 additions and 3 deletions

View File

@ -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):

View File

@ -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):