Content-Length: 258064 | pFad | https://togithub.com/googleapis/python-storage/commit/2c94d98ed21cc768cfa54fac3d734254fc4d8480

CC9 docs: fixed download_blob_to_file example (#704) · googleapis/python-storage@2c94d98 · GitHub
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 <cathyo@google.com> Co-authored-by: cojenco <cathyo@google.com>
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

Lines changed: 1 addition & 1 deletion
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://togithub.com/googleapis/python-storage/commit/2c94d98ed21cc768cfa54fac3d734254fc4d8480

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy