From: Peter Amstutz Date: Fri, 4 Mar 2022 22:03:06 +0000 (-0500) Subject: Fix python2-ism X-Git-Tag: 2.4.0~65 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/a4e945b6d279443e53af95cdf806a1c1339a76b8 Fix python2-ism refs #18656 Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- 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: