Do not open the file as binary.
This commit is contained in:
parent
7a24ebf9be
commit
b78149be59
|
@ -47,7 +47,7 @@ def run_configfile_module():
|
||||||
|
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
with open(path) as input:
|
with open(path, 'r') as input:
|
||||||
with tempfile.NamedTemporaryFile(dir=os.path.dirname(path)) as temp:
|
with tempfile.NamedTemporaryFile(dir=os.path.dirname(path)) 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