Skip to content

Commit a7f6c43

Browse files
committed
google import inline
1 parent fa97b0f commit a7f6c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas_gbq/gbq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from distutils.version import StrictVersion
88
from time import sleep
99

10-
import google
1110
import numpy as np
1211
from pandas import DataFrame, compat
1312
from pandas.compat import lzip
@@ -172,7 +171,8 @@ def __init__(self, project_id, reauth=False,
172171
from google.api_core.exceptions import ClientError
173172
self.http_error = (ClientError, GoogleAPIError)
174173
if not project_id:
175-
_, project_id = google.auth.default()
174+
from google.auth import default
175+
_, project_id = default()
176176
self.project_id = project_id
177177
self.reauth = reauth
178178
self.private_key = private_key

0 commit comments

Comments
 (0)