diff options
author | Paul <paultax@gmail.com> | 2015-01-17 10:34:51 +0100 |
---|---|---|
committer | Paul <paultax@gmail.com> | 2015-01-17 10:34:51 +0100 |
commit | 50c6fdf46a9743376e6a381176bdd8a3e41e141a (patch) | |
tree | ed5a7e55e58cdd65ab96a0cea2d07e128c7a9113 /awsauth.py | |
parent | 9721b6b7451a9d361b42d9e364e1a4c6b404cfe5 (diff) | |
download | python-requests-aws-50c6fdf46a9743376e6a381176bdd8a3e41e141a.tar.gz |
PY3 and PEP8 fixes
Diffstat (limited to 'awsauth.py')
-rw-r--r-- | awsauth.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import base64 import hmac from hashlib import sha1 as sha @@ -7,7 +6,6 @@ py3k = False try: from urlparse import urlparse from base64 import encodestring - except: py3k = True from urllib.parse import urlparse @@ -84,7 +82,8 @@ class S3Auth(AuthBase): lk = lk.decode('utf-8') except: pass - if headers[key] and (lk in interesting_headers.keys() or lk.startswith('x-amz-')): + if headers[key] and (lk in interesting_headers.keys() + or lk.startswith('x-amz-')): interesting_headers[lk] = headers[key].strip() # If x-amz-date is used it supersedes the date header. |