From 50c6fdf46a9743376e6a381176bdd8a3e41e141a Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 17 Jan 2015 10:34:51 +0100 Subject: PY3 and PEP8 fixes --- awsauth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'awsauth.py') 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. -- cgit v1.2.1