summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/keysym.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/apps/vnc/keysym.py')
-rw-r--r--kvmd/apps/vnc/keysym.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/vnc/keysym.py b/kvmd/apps/vnc/keysym.py
index 5f35c28b..275eee5e 100644
--- a/kvmd/apps/vnc/keysym.py
+++ b/kvmd/apps/vnc/keysym.py
@@ -41,7 +41,7 @@ def build_symmap(path: str) -> Dict[int, str]:
symmap[x11_code] = keymap.AT1_TO_WEB[at1_code]
for (x11_code, at1_code) in _read_keyboard_layout(path).items():
- if (web_name := keymap.AT1_TO_WEB.get(at1_code)) is not None: # noqa: E203,E231
+ if (web_name := keymap.AT1_TO_WEB.get(at1_code)) is not None:
# mypy bug
symmap[x11_code] = web_name # type: ignore
return symmap
@@ -89,7 +89,7 @@ def _read_keyboard_layout(path: str) -> Dict[int, int]: # Keysym to evdev (at1)
parts = line.split()
if len(parts) >= 2:
- if (code := _resolve_keysym(parts[0])) != 0: # noqa: E203,E231
+ if (code := _resolve_keysym(parts[0])) != 0:
try:
layout[code] = int(parts[1], 16)
except ValueError as err: