From 8b9919f784f93bdca7335354e7eea782b397fe0c Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Mon, 5 Dec 2022 10:26:45 +0100 Subject: Day 5 --- aoc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aoc/__init__.py') diff --git a/aoc/__init__.py b/aoc/__init__.py index 5fce415..3662e3a 100644 --- a/aoc/__init__.py +++ b/aoc/__init__.py @@ -23,7 +23,7 @@ class BaseAssignment(ABC): with open(file, "r") as input_file: for line in input_file.readlines(): - yield self.parse_item(line.strip()) + yield self.parse_item(line.strip("\n")) def run(self, input: Iterator) -> Any: raise NotImplementedError("Please implement run") -- cgit v1.2.3