refactoring

This commit is contained in:
Maxim Devaev
2023-03-07 23:54:05 +02:00
parent 002031baf1
commit f652eca9c2
15 changed files with 49 additions and 49 deletions

View File

@@ -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"],