Skip to content

Commit 4f9b107

Browse files
committed
Update import statement so that Python 2.7 could link library with tests
1 parent 886d5d6 commit 4f9b107

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

automl/google/cloud/automl_v1beta1/tables/tables_client.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from google.api_core import exceptions
2525
from google.cloud.automl_v1beta1 import gapic
2626
from google.cloud.automl_v1beta1.proto import data_types_pb2
27-
from google.cloud import automl_v1beta1
27+
from google.cloud.automl_v1beta1.tables import gcs_client
2828

2929
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-automl").version
3030
_LOGGER = logging.getLogger(__name__)
@@ -734,9 +734,7 @@ def import_data(
734734

735735
if self.gcs_client is None:
736736
credentials, _ = google.auth.default()
737-
self.gcs_client = automl_v1beta1.tables.gcs_client.GcsClient(
738-
credentials=credentials
739-
)
737+
self.gcs_client = gcs_client.GcsClient(credentials=credentials)
740738

741739
if pandas_dataframe is not None:
742740
bucket_name = self.gcs_client.ensure_bucket_exists(project=project)
@@ -2724,9 +2722,7 @@ def batch_predict(
27242722

27252723
if self.gcs_client is None:
27262724
credentials, _ = google.auth.default()
2727-
self.gcs_client = automl_v1beta1.tables.gcs_client.GcsClient(
2728-
credentials=credentials
2729-
)
2725+
self.gcs_client = gcs_client.GcsClient(credentials=credentials)
27302726

27312727
if pandas_dataframe is not None:
27322728
bucket_name = self.gcs_client.ensure_bucket_exists(project=project)

0 commit comments

Comments
 (0)