From 8bfc604ffb771cfbee131595bbf0fe7dad504caf Mon Sep 17 00:00:00 2001 From: Martin Vilcans Date: Thu, 9 Nov 2023 12:43:42 +0100 Subject: Close input file when main is done This avoids a warning about file not closed in file_tests --- screenplain/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screenplain/main.py b/screenplain/main.py index f3a1dce..b422a04 100644 --- a/screenplain/main.py +++ b/screenplain/main.py @@ -131,6 +131,8 @@ def main(args): finally: if output_file: output.close() + if input_file: + input.close() def cli(): -- cgit