Skip to content

Commit

Permalink
Revert "Updated docstring on Key.rename() with a warning."
Browse files Browse the repository at this point in the history
This reverts commit aa2e66a.

This was meant as a pull-request, not a direct commit.
  • Loading branch information
jgeewax committed Oct 12, 2014
1 parent aa2e66a commit 55adeb3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions gcloud/storage/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,10 @@ def exists(self):
return self.bucket.get_key(self.name) is not None

def rename(self, new_name):
"""Renames this key using copy and delete operations.
"""Renames this key.
Effectively, copies key to the same bucket with a new name, then
deletes the key.
.. warning::
This method will first duplicate the data
and then delete the old key.
This means that with very large objects
renaming could be a very (temporarily) costly
or a very slow operation.
:type new_name: string
:param new_name: The new name for this key.
Expand Down

0 comments on commit 55adeb3

Please sign in to comment.