From 3ac99f409ae6545e2f4fece4d9397d28d35b279b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 2 Dec 2021 13:58:27 +0100 Subject: Set file encoding when reading --- 2020/13/puzzle-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2020/13/puzzle-1.py') diff --git a/2020/13/puzzle-1.py b/2020/13/puzzle-1.py index 7b21f96..ef83817 100755 --- a/2020/13/puzzle-1.py +++ b/2020/13/puzzle-1.py @@ -2,7 +2,7 @@ def main() -> None: - with open("input", "r") as f: + with open("input", "r", encoding="utf-8") as f: time = int(f.readline()) ids = list(map(int, f.readline().replace(",x", "").split(","))) -- cgit v1.2.3