Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bigquery/samples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def get_service():
from oauth2client.client import GoogleCredentials

credentials = GoogleCredentials.get_application_default()
if credentials.create_scoped_required():
credentials = credentials.create_scoped(
'https://www.googleapis.com/auth/bigquery')

# The build() method takes care of injecting the proper scopes
# for the given service, when using application default credentials.
return build('bigquery', 'v2', credentials=credentials)
# [END get_service]

Expand Down