Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c94d98

Browse filesBrowse 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
Copy full SHA for 2c94d98

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎google/cloud/storage/client.py‎

Copy file name to clipboardExpand all lines: google/cloud/storage/client.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.