From 55adeb3cf83e9714b3783d7ab5e56ae01ab69e25 Mon Sep 17 00:00:00 2001 From: JJ Geewax Date: Sun, 12 Oct 2014 12:30:04 -0400 Subject: [PATCH] Revert "Updated docstring on Key.rename() with a warning." This reverts commit aa2e66a7de78d46aa4b9b7bc02ba6acb84406ae5. This was meant as a pull-request, not a direct commit. --- gcloud/storage/key.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gcloud/storage/key.py b/gcloud/storage/key.py index 3ddc705fb6a5..0384b368295b 100644 --- a/gcloud/storage/key.py +++ b/gcloud/storage/key.py @@ -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.