Fix pylint warnings

This commit is contained in:
R. Richard 2019-06-27 14:36:18 +02:00 committed by Kristóf Tóth
parent 810f6d5297
commit 28f09086a2
5 changed files with 6 additions and 8 deletions

View File

@ -1,9 +1,10 @@
from abc import ABC, abstractmethod
from contextlib import suppress
from tfw.builtins.message_sender import MessageSender
from tfw.event_handlers import FrontendEventHandlerBase
from .message_sender import MessageSender
class FrontendEventHandler(FrontendEventHandlerBase):
def __init__(self):

View File

@ -4,7 +4,7 @@
import logging
from tfw.networking import Scope
from tfw.event_handlers import FrontendEventHandlerBase, TFWServerUplinkConnector
from tfw.event_handlers import FrontendEventHandlerBase
from tfw.components import FileManager
from tfw.components.inotify import InotifyObserver

View File

@ -3,9 +3,8 @@
import logging
from os.path import dirname
from tfw.networking import Scope
from tfw.event_handlers import FrontendEventHandlerBase, TFWServerUplinkConnector
from tfw.event_handlers import FrontendEventHandlerBase
from tfw.components.inotify import InotifyObserver
from tfw.mixins.supervisor_mixin import SupervisorLogMixin
@ -24,7 +23,7 @@ class LogInotifyObserver(InotifyObserver, SupervisorLogMixin):
@property
def process_name(self):
return self._process_name
@process_name.setter
def process_name(self, process_name):
self._process_name = process_name

View File

@ -9,7 +9,7 @@ from tempfile import TemporaryDirectory
import pytest
from file_manager import FileManager
from .file_manager import FileManager
@dataclass
class ManagerContext:

View File

@ -5,13 +5,11 @@ from pwd import getpwnam
from grp import getgrnam
from pathlib import Path
from os import chown
from os.path import dirname
from re import findall
from re import compile as compileregex
from abc import ABC, abstractmethod
from tfw.components.inotify import InotifyObserver
from tfw.event_handlers import TFWServerUplinkConnector
class HistoryMonitor(ABC, InotifyObserver):