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 06d9254

Browse filesBrowse files
ryanmatsJon Wayne Parrott
authored andcommitted
Fix storage api example typo (GoogleCloudPlatform#528)
1 parent 349cdc8 commit 06d9254
Copy full SHA for 06d9254

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎storage/api/crud_object.py

Copy file name to clipboardExpand all lines: storage/api/crud_object.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def upload_object(bucket, filename, readers, owners):
9999
with open(filename, 'rb') as f:
100100
req = service.objects().insert(
101101
bucket=bucket, body=body,
102-
# You can also just set media_body=filename, but # for the sake of
102+
# You can also just set media_body=filename, but for the sake of
103103
# demonstration, pass in the more generic file handle, which could
104104
# very well be a StringIO or similar.
105105
media_body=http.MediaIoBaseUpload(f, 'application/octet-stream'))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.