Skip to content

Commit 550c8f2

Browse files
committed
job.py: pass bytes to f.write()
1 parent 03ebaea commit 550c8f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ def _job_popen(
480480
json.dump(job_description, f)
481481
try:
482482
job_script = os.path.join(job_dir, "run_job.bash")
483-
with open(job_script, "w") as f:
484-
f.write(job_script_contents)
483+
with open(job_script, "wb") as f:
484+
f.write(job_script_contents.encode('utf-8'))
485485
job_run = os.path.join(job_dir, "run_job.py")
486486
with open(job_run, "w") as f:
487487
f.write(PYTHON_RUN_SCRIPT)

0 commit comments

Comments
 (0)