Open the file as binary.
This commit is contained in:
parent
643ca47814
commit
27f5e6f0a7
|
@ -47,7 +47,7 @@ def run_configfile_module():
|
||||||
|
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
with open(path, 'r') as input:
|
with open(path, 'rb') 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