aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2023-11-09 12:43:42 +0100
committerMartin Vilcans <martin@librador.com>2023-11-09 12:43:42 +0100
commit8bfc604ffb771cfbee131595bbf0fe7dad504caf (patch)
tree385a79db55785ed62dedd1b8075cd1614e377157
parentf09fde100842275b7fff224db16f44ccd186a292 (diff)
downloadscreenplain-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.py2
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():