projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29fee81
)
11419: Read JSON files in binary mode.
author
Tom Clegg <tclegg@veritasgenetics.com>
Fri, 14 Dec 2018 20:59:34 +0000
(15:59 -0500)
committer
Peter Amstutz <pamstutz@veritasgenetics.com>
Mon, 17 Dec 2018 14:58:07 +0000
(09:58 -0500)
Files opened in text mode do not have a size() method.
refs #11419
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
sdk/cwl/arvados_cwl/runner.py
patch
|
blob
|
history
diff --git
a/sdk/cwl/arvados_cwl/runner.py
b/sdk/cwl/arvados_cwl/runner.py
index 1d5f98f200c16bb444878da3b418f01b57bf1002..4b3275fa36b4ee497ec83c3de2b3e8a0c938fb62 100644
(file)
--- a/
sdk/cwl/arvados_cwl/runner.py
+++ b/
sdk/cwl/arvados_cwl/runner.py
@@
-461,7
+461,7
@@
class Runner(Process):
keep_client=self.arvrunner.keep_client,
num_retries=self.arvrunner.num_retries)
if "cwl.output.json" in outc:
- with outc.open("cwl.output.json") as f:
+ with outc.open("cwl.output.json"
, "rb"
) as f:
if f.size() > 0:
outputs = json.load(f)
def keepify(fileobj):