diff options
author | Devaev Maxim <[email protected]> | 2020-05-22 14:36:01 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-22 14:36:01 +0300 |
commit | 0fa0680bd7c28e246c70b5a5102e38a592bd0f0d (patch) | |
tree | d33b4d5e0bbed8c8e6600402990959900baba26d /kvmd/apps/vnc/keysym.py | |
parent | 08950a5fbda89970af5043effa89886ae41fbb42 (diff) |
lint fixes
Diffstat (limited to 'kvmd/apps/vnc/keysym.py')
-rw-r--r-- | kvmd/apps/vnc/keysym.py | 4 |
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: |