From 05277e8038b79c33ffc0c38a07facfd26c2456cd Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 11 Oct 2023 18:53:56 +0200 Subject: [PATCH] Fix a typo. The r mode was not removed. --- library/configfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/configfile.py b/library/configfile.py index 1336c54..9a70fa0 100644 --- a/library/configfile.py +++ b/library/configfile.py @@ -48,7 +48,7 @@ def run_configfile_module(): changed = False with open(path, 'r') as input: - with tempfile.NamedTemporaryFile(dir=os.path.dirname(path), mode="rw") as temp: + with tempfile.NamedTemporaryFile(dir=os.path.dirname(path), mode="w") as temp: for line in input: print(expand(line), end=' ', file=temp)