Fix python2-ism
[arvados.git] / sdk / python / arvados / commands / run.py
index 1e64eeb1dafd06105a5eef02e0737ddfab3ed597..0fe05da22bb4c4ca18ff4997f4ece05865ea2fd0 100644 (file)
@@ -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: