Skip to content

Commit 207bf01

Browse files
jmchiltonnsoranzo
authored andcommitted
Python 3 fix for cwltool engine.
1 parent e09ac2f commit 207bf01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

planemo/cwl/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ def run_cwltool(ctx, path, job_path, **kwds):
6161

6262
args.extend([path, job_path])
6363
ctx.vlog("Calling cwltool with arguments %s" % args)
64-
with tempfile.NamedTemporaryFile() as tmp_stdout, \
65-
tempfile.NamedTemporaryFile() as tmp_stderr:
64+
with tempfile.NamedTemporaryFile("w") as tmp_stdout, \
65+
tempfile.NamedTemporaryFile("w") as tmp_stderr:
6666
# cwltool passes sys.stderr to subprocess.Popen - ensure it has
6767
# and actual fileno.
6868
with real_io():

0 commit comments

Comments
 (0)