From f652eca9c213dd783cf2ffd02109b2353ccb86c1 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 7 Mar 2023 23:54:05 +0200 Subject: refactoring --- genmap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'genmap.py') diff --git a/genmap.py b/genmap.py index 5e827725..edb40f53 100755 --- a/genmap.py +++ b/genmap.py @@ -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"], -- cgit v1.2.3