summaryrefslogtreecommitdiff
path: root/genmap.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-07 23:54:05 +0200
committerMaxim Devaev <[email protected]>2023-03-07 23:54:05 +0200
commitf652eca9c213dd783cf2ffd02109b2353ccb86c1 (patch)
tree3c2a5c68e0b03536ec5c482b9b5be708795e8292 /genmap.py
parent002031baf15d328dad764a620e1c83c01e7a55a6 (diff)
refactoring
Diffstat (limited to 'genmap.py')
-rwxr-xr-xgenmap.py4
1 files changed, 2 insertions, 2 deletions
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"],