From 7f71c1e8e330d27bcb526e310215a0c474b7fb80 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Tue, 21 Jul 2015 12:39:41 -0700 Subject: [PATCH] Moving Bucket.client property closer to constructor. Fixes #997. --- gcloud/storage/bucket.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcloud/storage/bucket.py b/gcloud/storage/bucket.py index adcaede0c8c3..bc4c0977dfc2 100644 --- a/gcloud/storage/bucket.py +++ b/gcloud/storage/bucket.py @@ -98,6 +98,11 @@ def __init__(self, client, name=None): def __repr__(self): return '' % self.name + @property + def client(self): + """The client bound to this bucket.""" + return self._client + def blob(self, blob_name, chunk_size=None): """Factory constructor for blob object. @@ -197,11 +202,6 @@ def path(self): return self.path_helper(self.name) - @property - def client(self): - """The client bound to this bucket.""" - return self._client - def get_blob(self, blob_name, client=None): """Get a blob object by name.