Skip to content

Commit

Permalink
Freeze project selection in dataset ctor.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Dec 5, 2016
1 parent d5091bc commit e866177
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e866177

Please sign in to comment.