summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Tax <paultax@gmail.com>2015-08-24 21:23:53 +0200
committerPaul Tax <paultax@gmail.com>2015-08-24 21:23:53 +0200
commit5ef2d19b629a12ea73d04bb263bf9dc1c9b4b8b9 (patch)
treefb96fc3b4b3af1709ee52f118a7cd29ce77af51c
parenta24df57c97c1d1926136496aaad9a2e945c84910 (diff)
downloadpython-requests-aws-5ef2d19b629a12ea73d04bb263bf9dc1c9b4b8b9.tar.gz
Fix py3
-rw-r--r--awsauth.py2
1 files changed, 1 insertions, 1 deletions
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