diff --git a/gcloud/bigquery/table.py b/gcloud/bigquery/table.py index 67ca36561b15..fa69a3a101ce 100644 --- a/gcloud/bigquery/table.py +++ b/gcloud/bigquery/table.py @@ -209,7 +209,7 @@ def partitioning_type(self, value): :type value: str :param value: partitioning type only "DAY" is currently supported """ - if value not in ['DAY', None]: + if value not in ('DAY', None): raise ValueError("value must be one of ['DAY', None]") if value is None: @@ -242,10 +242,10 @@ def partition_expiration(self, value): self._properties['timePartitioning'].pop('expirationMs') else: try: - self._properties["timePartitioning"]["expirationMs"] = value + self._properties['timePartitioning']['expirationMs'] = value except KeyError: - self._properties['timePartitioning'] = {'type': "DAY"} - self._properties["timePartitioning"]["expirationMs"] = value + self._properties['timePartitioning'] = {'type': 'DAY'} + self._properties['timePartitioning']['expirationMs'] = value @property def description(self):