summaryrefslogtreecommitdiff
path: root/awsauth.py
diff options
context:
space:
mode:
authorPaul <paultax@gmail.com>2015-01-17 10:34:51 +0100
committerPaul <paultax@gmail.com>2015-01-17 10:34:51 +0100
commit50c6fdf46a9743376e6a381176bdd8a3e41e141a (patch)
treeed5a7e55e58cdd65ab96a0cea2d07e128c7a9113 /awsauth.py
parent9721b6b7451a9d361b42d9e364e1a4c6b404cfe5 (diff)
downloadpython-requests-aws-50c6fdf46a9743376e6a381176bdd8a3e41e141a.tar.gz
PY3 and PEP8 fixes
Diffstat (limited to 'awsauth.py')
-rw-r--r--awsauth.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/awsauth.py b/awsauth.py
index 9d598ca..c3d5c0a 100644
--- a/awsauth.py
+++ b/awsauth.py
@@ -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.