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
Next Next commit
Docstrings.
  • Loading branch information
tseaver committed Nov 7, 2014
commit f8d8844e3e02de16e1a2042d56bfb8c3ab1dafc6
4 changes: 4 additions & 0 deletions gcloud/storage/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ def _scalar_property(fieldname):
"""Create a property descriptor around the :class:`_PropertyMixin` helpers.
"""
def _getter(self):
"""Scalar property getter.
"""

This comment was marked as spam.

This comment was marked as spam.

return self.properties[fieldname]

def _setter(self, value):
"""Scalar property setter.
"""
self._patch_properties({fieldname: value})

return property(_getter, _setter)
Expand Down