Skip to content

Commit 8dfa4d4

Browse files
authored
docs: remove and replace deprecated function download_as_string() (#508)
Remove deprecated function download_as_string(), replace with download_as_bytes(). [1] [1] https://github.com/googleapis/python-storage/blob/master/google/cloud/storage/blob.py#L138 Fixes #504 🦕
1 parent d4a86ce commit 8dfa4d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ how to create a bucket.
9898
bucket = client.get_bucket('bucket-id-here')
9999
# Then do other things...
100100
blob = bucket.get_blob('remote/path/to/file.txt')
101-
print(blob.download_as_string())
101+
print(blob.download_as_bytes())
102102
blob.upload_from_string('New contents!')
103103
blob2 = bucket.blob('remote/path/storage.txt')
104104
blob2.upload_from_filename(filename='/local/path.txt')

0 commit comments

Comments
 (0)