Skip to content

Commit 55adeb3

Browse files
committed
Revert "Updated docstring on Key.rename() with a warning."
This reverts commit aa2e66a. This was meant as a pull-request, not a direct commit.
1 parent aa2e66a commit 55adeb3

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

gcloud/storage/key.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,10 @@ def exists(self):
134134
return self.bucket.get_key(self.name) is not None
135135

136136
def rename(self, new_name):
137-
"""Renames this key using copy and delete operations.
137+
"""Renames this key.
138138
139139
Effectively, copies key to the same bucket with a new name, then
140140
deletes the key.
141-
142-
.. warning::
143-
This method will first duplicate the data
144-
and then delete the old key.
145-
This means that with very large objects
146-
renaming could be a very (temporarily) costly
147-
or a very slow operation.
148141
149142
:type new_name: string
150143
:param new_name: The new name for this key.

0 commit comments

Comments
 (0)