Commit 2f3f643a authored by Jameson Rollins's avatar Jameson Rollins

medm: fix writing MEDM temp files (bytes->str)

parent df3a80b4
......@@ -108,7 +108,7 @@ def main():
width = 856
x = border
y = border
with tempfile.NamedTemporaryFile(prefix=prefix, suffix='.adl') as f:
with tempfile.NamedTemporaryFile('tw+', prefix=prefix, suffix='.adl') as f:
f.write(resources.header(bclr=14, height=height, width=width))
for s in args.system:
try:
......@@ -187,7 +187,7 @@ composite {{
############################################################
with tempfile.NamedTemporaryFile(prefix=prefix, suffix='.adl') as f:
with tempfile.NamedTemporaryFile('tw+', prefix=prefix, suffix='.adl',) as f:
write_func(f, *wargs)
f.seek(0)
if args.sprint:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment