We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6c29c commit 62e13d7Copy full SHA for 62e13d7
gcloud/storage/test_api.py
@@ -58,7 +58,7 @@ def _lookup_bucket_hit_helper(self, use_default=False):
58
])
59
http = conn._http = Http(
60
{'status': '200', 'content-type': 'application/json'},
61
- '{{"name": "{0}"}}'.format(BLOB_NAME).encode(),
+ '{{"name": "{0}"}}'.format(BLOB_NAME).encode('utf-8'),
62
)
63
64
if use_default:
@@ -119,7 +119,7 @@ def _get_all_buckets_non_empty_helper(self, use_default=False):
119
120
121
122
- '{{"items": [{{"name": "{0}"}}]}}'.format(BUCKET_NAME).encode(),
+ '{{"items": [{{"name": "{0}"}}]}}'.format(BUCKET_NAME).encode('utf-8'),
123
124
125
0 commit comments