Merge branch 'master' into 12033-multisite-search
[arvados.git] / sdk / python / arvados / commands / ws.py
index 72ef1befed85ffd4d8b883270ebefa0a3bcd3dac..d338ee3afa7f19d3f18f56981ca9a19caec59e08 100644 (file)
@@ -1,5 +1,8 @@
-#!/usr/bin/env python
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
 
+from __future__ import print_function
 import sys
 import logging
 import argparse
@@ -97,7 +100,7 @@ def main(arguments=None):
         elif 'status' in ev and ev['status'] == 200:
             pass
         else:
-            print json.dumps(ev)
+            print(json.dumps(ev))
 
     try:
         ws = subscribe(arvados.api('v1'), filters, on_message, poll_fallback=args.poll_interval, last_log_id=last_log_id)