Skip to content

Commit 2c94d98

Browse files
docs: fixed download_blob_to_file example (#704)
* docs: fixed download_blob_to_file example * Update google/cloud/storage/client.py Co-authored-by: cojenco <[email protected]> Co-authored-by: cojenco <[email protected]>
1 parent 192fe9c commit 2c94d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/storage/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ def download_blob_to_file(
10891089
>>> from google.cloud import storage
10901090
>>> client = storage.Client()
10911091
1092-
>>> with open('file-to-download-to', 'w') as file_obj:
1092+
>>> with open('file-to-download-to', 'wb') as file_obj:
10931093
>>> client.download_blob_to_file(
10941094
>>> 'gs://bucket_name/path/to/blob', file_obj)
10951095

0 commit comments

Comments
 (0)