@@ -30,7 +30,7 @@ def apply(http_request, url, body=None):
3030 """
3131
3232 if Configuration .hmac_auth_user_name is not None and \
33- Configuration .hmac_auth_password is not None :
33+ Configuration .hmac_auth_password is not None :
3434 AuthManager .apply_hmac_auth (http_request , url , body )
3535 else :
3636 AuthManager .apply_basic_auth (http_request )
@@ -91,16 +91,16 @@ def apply_hmac_auth(http_request, url, body=None):
9191 url ,
9292 request_type )
9393
94- joined = 'username="{}", algorithm="hmac-sha1", headers="date {}' \
95- 'request-line", signature="{}"' \
94+ joined = 'username="{}", algorithm="hmac-sha1", headers="date {}' \
95+ 'request-line", signature="{}"' \
9696 .format (username , content_header , hmac_signature )
9797
9898 header_value = "hmac {}" .format (joined )
9999 http_request .headers ["Authorization" ] = header_value
100100
101101 @staticmethod
102102 def create_signature (date , content_signature , url , request_type ):
103- signing_string = "date: {}\n {}{} {} HTTP/1.1" \
103+ signing_string = "date: {}\n {}{} {} HTTP/1.1" \
104104 .format (date , content_signature , request_type , url )
105105
106106 hashed = hmac .new (Configuration .hmac_auth_password .encode ("utf-8" ),
0 commit comments