Skip to content

Commit

Permalink
docs: fixed download_blob_to_file example (#704)
Browse files Browse the repository at this point in the history
* docs: fixed download_blob_to_file example

* Update google/cloud/storage/client.py

Co-authored-by: cojenco <cathyo@google.com>

Co-authored-by: cojenco <cathyo@google.com>
  • Loading branch information
shaffeeullah and cojenco committed Jan 25, 2022
1 parent 192fe9c commit 2c94d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/storage/client.py
Expand Up @@ -1089,7 +1089,7 @@ def download_blob_to_file(
>>> from google.cloud import storage
>>> client = storage.Client()
>>> with open('file-to-download-to', 'w') as file_obj:
>>> with open('file-to-download-to', 'wb') as file_obj:
>>> client.download_blob_to_file(
>>> 'gs://bucket_name/path/to/blob', file_obj)
Expand Down

0 comments on commit 2c94d98

Please sign in to comment.