Fix a typo. The r mode was not removed.
This commit is contained in:
parent
cf4d866f0c
commit
05277e8038
|
@ -48,7 +48,7 @@ def run_configfile_module():
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
with open(path, 'r') as input:
|
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:
|
for line in input:
|
||||||
print(expand(line), end=' ', file=temp)
|
print(expand(line), end=' ', file=temp)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue