Fix a typo. The r mode was not removed.

This commit is contained in:
Andrea Dell'Amico 2023-10-11 18:53:56 +02:00
parent cf4d866f0c
commit 05277e8038
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -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)