From 5ef2d19b629a12ea73d04bb263bf9dc1c9b4b8b9 Mon Sep 17 00:00:00 2001 From: Paul Tax Date: Mon, 24 Aug 2015 21:23:53 +0200 Subject: Fix py3 --- awsauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awsauth.py b/awsauth.py index 1c71faf..b444f01 100644 --- a/awsauth.py +++ b/awsauth.py @@ -146,6 +146,6 @@ class S3Auth(AuthBase): # if we sign the request with the encoded value the signature will # not be valid, we'll get 403 Access Denied. # So we unquote, this is no-op if the value isn't encoded. - buf += '{}={}'.format(k, urllib.unquote(v)) + buf += '{key}={value}'.format(key=k, value=urlparse.unquote(v)) return buf -- cgit v1.2.1