diff options
author | Devaev Maxim <[email protected]> | 2020-05-25 01:49:39 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-05-25 01:49:39 +0300 |
commit | d5dca5a8b4eadd988505a6d84e2807cbea6c6d11 (patch) | |
tree | 6d8186cd8ec58057cfff020814de4c0eb1ed6e0f /kvmd/keyboard | |
parent | 499cbb0cc57346708525dd1d0059e65a74598980 (diff) |
refactoring
Diffstat (limited to 'kvmd/keyboard')
-rw-r--r-- | kvmd/keyboard/keysym.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/keyboard/keysym.py b/kvmd/keyboard/keysym.py index 3749f7da..89919e5c 100644 --- a/kvmd/keyboard/keysym.py +++ b/kvmd/keyboard/keysym.py @@ -107,7 +107,7 @@ def _read_keyboard_layout(path: str) -> Dict[int, At1Key]: # Keysym to evdev (a lines = list(map(str.strip, layout_file.read().split("\n"))) layout: Dict[int, At1Key] = {} - for (number, line) in enumerate(lines): + for (lineno, line) in enumerate(lines): if len(line) == 0 or line.startswith(("#", "map ", "include ")): continue @@ -122,5 +122,5 @@ def _read_keyboard_layout(path: str) -> Dict[int, At1Key]: # Keysym to evdev (a ctrl=("ctrl" in parts[2:]), ) except ValueError as err: - logger.error("Syntax error at %s:%d: %s", path, number, err) + logger.error("Syntax error at %s:%d: %s", path, lineno, err) return layout |