From a4e945b6d279443e53af95cdf806a1c1339a76b8 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Fri, 4 Mar 2022 17:03:06 -0500 Subject: [PATCH] Fix python2-ism refs #18656 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- sdk/python/arvados/commands/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/arvados/commands/run.py b/sdk/python/arvados/commands/run.py index 1e64eeb1da..0fe05da22b 100644 --- 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): - with file(fn, 'r') as f: + with open(fn, 'r') as f: c = json.load(f) return (c["portable_data_hash"], branch) else: -- 2.30.2