diff options
author | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-03-07 23:54:05 +0200 |
commit | f652eca9c213dd783cf2ffd02109b2353ccb86c1 (patch) | |
tree | 3c2a5c68e0b03536ec5c482b9b5be708795e8292 /genmap.py | |
parent | 002031baf15d328dad764a620e1c83c01e7a55a6 (diff) |
refactoring
Diffstat (limited to 'genmap.py')
-rwxr-xr-x | genmap.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -117,8 +117,8 @@ def _parse_ps2_key(key: str) -> _Ps2Key: def _read_keymap_csv(path: str) -> list[_KeyMapping]: keymap: list[_KeyMapping] = [] - with open(path) as keymap_file: - for row in csv.DictReader(keymap_file): + with open(path) as file: + for row in csv.DictReader(file): if len(row) >= 6: keymap.append(_KeyMapping( web_name=row["web_name"], |