From 697fd4e1099a76973d7159a922044f3687fea498 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 5 Jul 2018 22:20:56 +0200 Subject: [PATCH] print is a function in Python 3 --- .../jenkins/dependency_check/bigquery_client_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.test-infra/jenkins/dependency_check/bigquery_client_utils.py b/.test-infra/jenkins/dependency_check/bigquery_client_utils.py index 08571b7dce33..823ae89ea4e7 100644 --- a/.test-infra/jenkins/dependency_check/bigquery_client_utils.py +++ b/.test-infra/jenkins/dependency_check/bigquery_client_utils.py @@ -15,6 +15,8 @@ # limitations under the License. # +from __future__ import print_function + import datetime import logging from google.cloud import bigquery @@ -101,7 +103,7 @@ def insert_dep_to_table(self, dep, version, release_date, is_currently_used=Fals try: query_job = self.bigquery_client.query(query) if not query_job.done(): - print query_job.result() + print(query_job.result()) except: raise @@ -123,7 +125,7 @@ def delete_dep_from_table(self, dep, version): try: query_job = self.bigquery_client.query(query) if not query_job.done(): - print query_job.result() + print(query_job.result()) except: raise