Skip to content

Commit

Permalink
Making use of encode use utf-8 explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
craigloftus committed Mar 16, 2015
1 parent 1d6c29c commit 62e13d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcloud/storage/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _lookup_bucket_hit_helper(self, use_default=False):
])
http = conn._http = Http(
{'status': '200', 'content-type': 'application/json'},
'{{"name": "{0}"}}'.format(BLOB_NAME).encode(),
'{{"name": "{0}"}}'.format(BLOB_NAME).encode('utf-8'),
)

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

if use_default:
Expand Down

0 comments on commit 62e13d7

Please sign in to comment.