Skip to content

Commit 822ecce

Browse files
authored
Merge pull request googleapis#2811 from dhermes/fix-sphinx-bug
Fixing bug in Bucket.delete_blobs().
2 parents 5f178e8 + 0f33c6e commit 822ecce

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

storage/google/cloud/storage/bucket.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -402,22 +402,23 @@ def delete_blob(self, blob_name, client=None):
402402
def delete_blobs(self, blobs, on_error=None, client=None):
403403
"""Deletes a list of blobs from the current bucket.
404404
405-
Uses :func:`Bucket.delete_blob` to delete each individual blob.
405+
Uses :meth:`delete_blob` to delete each individual blob.
406406
407-
:type blobs: list of string or :class:`google.cloud.storage.blob.Blob`
408-
:param blobs: A list of blob names or Blob objects to delete.
407+
:type blobs: list
408+
:param blobs: A list of :class:`~google.cloud.storage.blob.Blob`-s or
409+
blob names to delete.
409410
410-
:type on_error: a callable taking (blob)
411-
:param on_error: If not ``None``, called once for each blob raising
412-
:class:`google.cloud.exceptions.NotFound`;
411+
:type on_error: callable
412+
:param on_error: (Optional) Takes single argument: ``blob``. Called
413+
called once for each blob raising
414+
:class:`~google.cloud.exceptions.NotFound`;
413415
otherwise, the exception is propagated.
414416
415-
:type client: :class:`~google.cloud.storage.client.Client` or
416-
``NoneType``
417-
:param client: Optional. The client to use. If not passed, falls back
417+
:type client: :class:`~google.cloud.storage.client.Client`
418+
:param client: (Optional) The client to use. If not passed, falls back
418419
to the ``client`` stored on the current bucket.
419420
420-
:raises: :class:`google.cloud.exceptions.NotFound` (if
421+
:raises: :class:`~google.cloud.exceptions.NotFound` (if
421422
`on_error` is not passed).
422423
"""
423424
for blob in blobs:

0 commit comments

Comments
 (0)