diff options
author | Cat Lee Ball 🎷🐛 <cball@google.com> | 2019-03-26 17:21:03 -0700 |
---|---|---|
committer | Cat Lee Ball 🎷🐛 <cball@google.com> | 2019-03-26 17:21:03 -0700 |
commit | 0955620ab49b76c60abbcc1bea61ad05c2098361 (patch) | |
tree | 03504e75038acd58f022acb8af4d16826190c817 /boto/gs/connection.py | |
parent | acd6a95ad953a4f1ac72adfc354a6c5aec74fbb0 (diff) | |
download | boto-0955620ab49b76c60abbcc1bea61ad05c2098361.tar.gz |
Replaced get_utf8_value with six.ensure_str
We replaced the old method get_utf8_value with six.ensure_str now
that it's available. ensure_str behaves more relibaly and accurately
in testing than the get_utf8_value function.
Diffstat (limited to 'boto/gs/connection.py')
-rwxr-xr-x | boto/gs/connection.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boto/gs/connection.py b/boto/gs/connection.py index 9a2e4a2b..4dd18cab 100755 --- a/boto/gs/connection.py +++ b/boto/gs/connection.py @@ -91,8 +91,8 @@ class GSConnection(S3Connection): data = ('<CreateBucketConfiguration>%s%s</CreateBucketConfiguration>' % (location_elem, storage_class_elem)) response = self.make_request( - 'PUT', get_utf8_value(bucket_name), headers=headers, - data=get_utf8_value(data)) + 'PUT', six.ensure_str(bucket_name), headers=headers, + data=six.ensure_str(data)) body = response.read() if response.status == 409: raise self.provider.storage_create_error( |