Skip to content

Commit 71780e3

Browse files
committed
Appease lint.
1 parent 2a306fe commit 71780e3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gcloud/storage/key.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,17 +623,21 @@ class _UploadConfig(object):
623623

624624

625625
class _UrlBuilder(object):
626-
"""Faux builder FBO apitools' 'ConfigureRequest'
627-
"""
626+
"""Faux builder FBO apitools' 'ConfigureRequest'"""
628627
def __init__(self, bucket_name, object_name):
629628
self.query_params = {'name': object_name}
630629
self._bucket_name = bucket_name
631630
self._relative_path = ''
632631

633632
@property
634633
def relative_path(self):
634+
"""Inject bucket name into path."""
635635
return self._relative_path.format(bucket=self._bucket_name)
636636

637637
@relative_path.setter
638638
def relative_path(self, value):
639+
"""Allow update of path template.
640+
641+
``value`` should be a string template taking ``{bucket}``.
642+
"""
639643
self._relative_path = value

0 commit comments

Comments
 (0)