Skip to content

Commit 62e13d7

Browse files
committed
Making use of encode use utf-8 explicitly
1 parent 1d6c29c commit 62e13d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcloud/storage/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _lookup_bucket_hit_helper(self, use_default=False):
5858
])
5959
http = conn._http = Http(
6060
{'status': '200', 'content-type': 'application/json'},
61-
'{{"name": "{0}"}}'.format(BLOB_NAME).encode(),
61+
'{{"name": "{0}"}}'.format(BLOB_NAME).encode('utf-8'),
6262
)
6363

6464
if use_default:
@@ -119,7 +119,7 @@ def _get_all_buckets_non_empty_helper(self, use_default=False):
119119
])
120120
http = conn._http = Http(
121121
{'status': '200', 'content-type': 'application/json'},
122-
'{{"items": [{{"name": "{0}"}}]}}'.format(BUCKET_NAME).encode(),
122+
'{{"items": [{{"name": "{0}"}}]}}'.format(BUCKET_NAME).encode('utf-8'),
123123
)
124124

125125
if use_default:

0 commit comments

Comments
 (0)