From 0a082f129f9438fbfaf315ca3220e62586c878cd Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 8 Dec 2021 15:31:29 +0100 Subject: Use the .readlines() method --- 2020/14/puzzle-2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2020/14/puzzle-2.py') diff --git a/2020/14/puzzle-2.py b/2020/14/puzzle-2.py index 726da0a..d346622 100755 --- a/2020/14/puzzle-2.py +++ b/2020/14/puzzle-2.py @@ -27,7 +27,7 @@ def bitmask(mask: str, num: int) -> tuple[int, ...]: def main() -> None: with open("input", "r", encoding="utf-8") as f: - lines = f.read().splitlines() + lines = f.readlines() mem: dict[str, int] = {} mask = "" -- cgit v1.2.3