Skip to content

Commit

Permalink
cwl: switch subprocess run method
Browse files Browse the repository at this point in the history
In favor of `check_output` which is compatible with Python 2.7
  • Loading branch information
mvidalgarcia committed Apr 7, 2020
1 parent 377ae0a commit e2eb481
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions reana_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ def cwl_load(workflow_file, **kwargs):
:returns: A dictionary which represents the valid `cwl` workflow.
"""
result = \
subprocess.run(
['cwltool', '--pack', '--quiet', workflow_file],
stdout=subprocess.PIPE)
value = result.stdout.decode('utf-8')
subprocess.check_output(
['cwltool', '--pack', '--quiet', workflow_file])
value = result.decode('utf-8')
return json.loads(value)


Expand Down

0 comments on commit e2eb481

Please sign in to comment.