summaryrefslogtreecommitdiff
path: root/awsauth.py
diff options
context:
space:
mode:
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.