aboutsummaryrefslogtreecommitdiff
path: root/2020/13/puzzle-1.py
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-02 13:58:27 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-02 13:58:27 +0100
commit3ac99f409ae6545e2f4fece4d9397d28d35b279b (patch)
tree5757e252e197e97d6f64f5485a07a8c83739e20c /2020/13/puzzle-1.py
parente257eb53359927c537d2e9c31ca8eae7a0f6dfe7 (diff)
Set file encoding when reading
Diffstat (limited to '2020/13/puzzle-1.py')
-rwxr-xr-x2020/13/puzzle-1.py2
1 files changed, 1 insertions, 1 deletions
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(",")))