diff options
author | Cat Lee Ball 🎷🐛 <cball@google.com> | 2019-03-28 15:45:35 -0700 |
---|---|---|
committer | Cat Lee Ball 🎷🐛 <cball@google.com> | 2019-03-28 15:45:35 -0700 |
commit | 53b8a153008bbaedb8dd671ae56f04b156c838e9 (patch) | |
tree | 472ee726ff0db7fc36a43d9aa4516f43fb3b3479 | |
parent | 07d258e6640a64bc4ebcc62fe30a10e1909c00a1 (diff) | |
download | boto-53b8a153008bbaedb8dd671ae56f04b156c838e9.tar.gz |
Replaced some six.ensure_strs from a previous commit of mine
-rw-r--r-- | boto/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/boto/auth.py b/boto/auth.py index 77c2c2bc..83b223d1 100644 --- a/boto/auth.py +++ b/boto/auth.py @@ -838,7 +838,7 @@ class STSAnonHandler(AuthHandler): pairs = [] for key in keys: val = get_utf8able_str(params[key]) - pairs.append(key + '=' + self._escape_value(six.ensure_str(val))) + pairs.append(key + '=' + self._escape_value(get_utf8able_str(val))) return '&'.join(pairs) def add_auth(self, http_request, **kwargs): @@ -925,7 +925,7 @@ class QuerySignatureV1AuthHandler(QuerySignatureHelper, AuthHandler): pairs = [] for key in keys: hmac.update(key.encode('utf-8')) - val = six.ensure_str(params[key]) + val = get_utf8able_str(params[key]) hmac.update(val) pairs.append(key + '=' + urllib.parse.quote(val)) qs = '&'.join(pairs) |