projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c3577ec
)
18656: Fix python2-ism
18656-acr-file
author
Peter Amstutz <peter.amstutz@curii.com>
Fri, 4 Mar 2022 22:03:06 +0000
(17:03 -0500)
committer
Peter Amstutz <peter.amstutz@curii.com>
Fri, 4 Mar 2022 22:03:06 +0000
(17:03 -0500)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/python/arvados/commands/run.py
patch
|
blob
|
history
diff --git
a/sdk/python/arvados/commands/run.py
b/sdk/python/arvados/commands/run.py
index 1e64eeb1dafd06105a5eef02e0737ddfab3ed597..0fe05da22bb4c4ca18ff4997f4ece05865ea2fd0 100644
(file)
--- a/
sdk/python/arvados/commands/run.py
+++ b/
sdk/python/arvados/commands/run.py
@@
-65,7
+65,7
@@
def is_in_collection(root, branch):
return (None, None)
fn = os.path.join(root, ".arvados#collection")
if os.path.exists(fn):
return (None, None)
fn = os.path.join(root, ".arvados#collection")
if os.path.exists(fn):
- with
file
(fn, 'r') as f:
+ with
open
(fn, 'r') as f:
c = json.load(f)
return (c["portable_data_hash"], branch)
else:
c = json.load(f)
return (c["portable_data_hash"], branch)
else: