From ee81b1165d491f382ac60798b2c013c5c33fa18b Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 4 Dec 2022 14:22:46 +0100 Subject: [PATCH] [py] Print newlines differently --- py/aoc/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/py/aoc/__init__.py b/py/aoc/__init__.py index 81bde3e..a135343 100644 --- a/py/aoc/__init__.py +++ b/py/aoc/__init__.py @@ -17,12 +17,7 @@ def main(): parser.add_argument("files", type=Path, nargs="+") args = parser.parse_args() - first_day = True for file in args.files: - if not first_day: - print() - first_day = False - day = DAYS.get(file.stem) if day is None: print(f"### Could not determine day: {file}", file=sys.stderr) @@ -32,3 +27,4 @@ def main(): with open(file) as f: inputstr = f.read() day(inputstr) + print()