diff options
author | Cat Lee Ball 🎷🐛 <cball@google.com> | 2019-03-27 17:21:19 -0700 |
---|---|---|
committer | Cat Lee Ball 🎷🐛 <cball@google.com> | 2019-03-27 17:21:19 -0700 |
commit | 931c74757207b8de69229bd4187415da14784edd (patch) | |
tree | 20f537a65b17a31af3c41f08e1c83185aba1bfbf /boto/s3/connection.py | |
parent | 9e1cd3bd76e738d80630f1bd9160fd87c8eab865 (diff) | |
download | boto-931c74757207b8de69229bd4187415da14784edd.tar.gz |
Use get_utf8able_str over get_utf8_value
Diffstat (limited to 'boto/s3/connection.py')
-rw-r--r-- | boto/s3/connection.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boto/s3/connection.py b/boto/s3/connection.py index 224bf882..6893c309 100644 --- a/boto/s3/connection.py +++ b/boto/s3/connection.py @@ -88,7 +88,7 @@ class _CallingFormat(object): return self.get_bucket_server(server, bucket) def build_auth_path(self, bucket, key=''): - key = boto.utils.get_utf8_value(key) + key = get_utf8able_str(key) if isinstance(bucket, bytes): bucket = bucket.decode('utf-8') path = '' @@ -97,7 +97,7 @@ class _CallingFormat(object): return path + '/%s' % urllib.parse.quote(key) def build_path_base(self, bucket, key=''): - key = boto.utils.get_utf8_value(key) + key = get_utf8able_str(key) return '/%s' % urllib.parse.quote(key) @@ -121,7 +121,7 @@ class OrdinaryCallingFormat(_CallingFormat): return server def build_path_base(self, bucket, key=''): - key = boto.utils.get_utf8_value(key) + key = get_utf8able_str(key) path_base = '/' if bucket: path_base += "%s/" % bucket |