From d8b4e22857558a0f53fecc1ae3c7a9b655705173 Mon Sep 17 00:00:00 2001 From: "Richard S. Leung" Date: Fri, 16 Jul 2021 00:11:16 +0900 Subject: [PATCH] docs: replace deprecated function in example codes --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index bb15ee569..4b64e1023 100644 --- a/README.rst +++ b/README.rst @@ -98,7 +98,7 @@ how to create a bucket. bucket = client.get_bucket('bucket-id-here') # Then do other things... blob = bucket.get_blob('remote/path/to/file.txt') - print(blob.download_as_string()) + print(blob.download_as_bytes()) blob.upload_from_string('New contents!') blob2 = bucket.blob('remote/path/storage.txt') blob2.upload_from_filename(filename='/local/path.txt')