summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-10-01 09:12:27 +0300
committerDevaev Maxim <[email protected]>2019-10-01 09:12:27 +0300
commit05e9dca03c948cc641057a94d150323cb0bea150 (patch)
treedb4f81322dfc2088b1a1e6c270f886877e6c406a /kvmd/plugins
parent08eeb3c19f0ce793073987bb63354fbbe7103c73 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/hid/otg/device.py (renamed from kvmd/plugins/hid/otg/hid.py)2
-rw-r--r--kvmd/plugins/hid/otg/keyboard.py6
-rw-r--r--kvmd/plugins/hid/otg/mouse.py6
3 files changed, 7 insertions, 7 deletions
diff --git a/kvmd/plugins/hid/otg/hid.py b/kvmd/plugins/hid/otg/device.py
index 83121b65..fbd91f59 100644
--- a/kvmd/plugins/hid/otg/hid.py
+++ b/kvmd/plugins/hid/otg/device.py
@@ -39,7 +39,7 @@ class BaseEvent:
pass
-class DeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instance-attributes
+class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-instance-attributes
def __init__(
self,
name: str,
diff --git a/kvmd/plugins/hid/otg/keyboard.py b/kvmd/plugins/hid/otg/keyboard.py
index 94313a2f..cd8a1f5f 100644
--- a/kvmd/plugins/hid/otg/keyboard.py
+++ b/kvmd/plugins/hid/otg/keyboard.py
@@ -31,8 +31,8 @@ from ....logging import get_logger
from .... import keymap
-from .hid import BaseEvent
-from .hid import DeviceProcess
+from .device import BaseEvent
+from .device import BaseDeviceProcess
# =====
@@ -51,7 +51,7 @@ class _KeyEvent(BaseEvent):
# =====
-class KeyboardProcess(DeviceProcess):
+class KeyboardProcess(BaseDeviceProcess):
def __init__(self, **kwargs: Any) -> None:
super().__init__(name="keyboard", **kwargs)
diff --git a/kvmd/plugins/hid/otg/mouse.py b/kvmd/plugins/hid/otg/mouse.py
index 1c0ad1df..7c201ab6 100644
--- a/kvmd/plugins/hid/otg/mouse.py
+++ b/kvmd/plugins/hid/otg/mouse.py
@@ -27,8 +27,8 @@ from typing import Any
from ....logging import get_logger
-from .hid import BaseEvent
-from .hid import DeviceProcess
+from .device import BaseEvent
+from .device import BaseDeviceProcess
# =====
@@ -75,7 +75,7 @@ class _WheelEvent(BaseEvent):
# =====
-class MouseProcess(DeviceProcess):
+class MouseProcess(BaseDeviceProcess):
def __init__(self, **kwargs: Any) -> None:
super().__init__(name="mouse", **kwargs)