diff options
author | Martin Vilcans <martin@librador.com> | 2023-11-09 12:43:42 +0100 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2023-11-09 12:43:42 +0100 |
commit | 8bfc604ffb771cfbee131595bbf0fe7dad504caf (patch) | |
tree | 385a79db55785ed62dedd1b8075cd1614e377157 | |
parent | f09fde100842275b7fff224db16f44ccd186a292 (diff) | |
download | screenplain-8bfc604ffb771cfbee131595bbf0fe7dad504caf.tar.gz |
Close input file when main is done
This avoids a warning about file not closed in file_tests
-rw-r--r-- | screenplain/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
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(): |