Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Freeze project selection in dataset ctor.
  • Loading branch information
tseaver committed Dec 5, 2016
commit e86617735f968584fb231108013227be2d98a083
4 changes: 2 additions & 2 deletions bigquery/google/cloud/bigquery/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(self, name, client, access_grants=(), project=None):
self._properties = {}
# Let the @property do validation.
self.access_grants = access_grants
self._project = project
self._project = project or client.project

@property
def project(self):
Expand All @@ -124,7 +124,7 @@ def project(self):
:rtype: str
:returns: the project (derived from the client).
"""
return self._project or self._client.project
return self._project

@property
def path(self):
Expand Down