Windows pain

This commit is contained in:
2023-04-04 00:15:53 +02:00
committed by Lorenz Stechauner
parent 6f1cc0e922
commit 1defd4259f
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ def parse(filename: str) -> Iterator[Dict[str, Any]]:
if w is not None:
yield w.strip()
with open(filename, 'r') as f:
with open(filename, 'r', encoding='utf-8') as f:
header: Optional[Tuple[str]] = None
for line in f:
if header is None: