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 abc import ABC, abstractmethod
from contextlib import suppress from contextlib import suppress
from tfw.builtins.message_sender import MessageSender
from tfw.event_handlers import FrontendEventHandlerBase from tfw.event_handlers import FrontendEventHandlerBase
from .message_sender import MessageSender
class FrontendEventHandler(FrontendEventHandlerBase): class FrontendEventHandler(FrontendEventHandlerBase):
def __init__(self): def __init__(self):

View File

@ -4,7 +4,7 @@
import logging import logging
from tfw.networking import Scope 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 import FileManager
from tfw.components.inotify import InotifyObserver from tfw.components.inotify import InotifyObserver

View File

@ -3,9 +3,8 @@
import logging import logging
from os.path import dirname
from tfw.networking import Scope 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.components.inotify import InotifyObserver
from tfw.mixins.supervisor_mixin import SupervisorLogMixin from tfw.mixins.supervisor_mixin import SupervisorLogMixin

View File

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

View File

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