From 22129048e75e68eddc6df70722b6012800a644ee Mon Sep 17 00:00:00 2001 From: Mikael CAPELLE Date: Tue, 10 Dec 2024 16:54:18 +0100 Subject: [PATCH] Fix 2023 day 20 for API. --- src/holt59/aoc/2023/day20.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/holt59/aoc/2023/day20.py b/src/holt59/aoc/2023/day20.py index bc34b48..a8c5a31 100644 --- a/src/holt59/aoc/2023/day20.py +++ b/src/holt59/aoc/2023/day20.py @@ -1,4 +1,3 @@ -import sys from collections import defaultdict from math import lcm from typing import Any, Iterator, Literal, TypeAlias @@ -67,7 +66,7 @@ class Solver(BaseSolver): def solve(self, input: str) -> Iterator[Any]: self._modules = {} - lines = sys.stdin.read().splitlines() + lines = input.splitlines() for line in lines: name, outputs_s = line.split(" -> ")