summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/saml2/s_utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/saml2/s_utils.py b/src/saml2/s_utils.py
index abc53abd..9ffe0001 100644
--- a/src/saml2/s_utils.py
+++ b/src/saml2/s_utils.py
@@ -379,10 +379,7 @@ def signature(secret, parts):
part = part.encode('utf-8')
newparts.append(part)
parts = newparts
- if sys.version_info >= (2, 5):
- csum = hmac.new(secret, digestmod=hashlib.sha1)
- else:
- csum = hmac.new(secret, digestmod=sha)
+ csum = hmac.new(secret, digestmod=hashlib.sha1)
for part in parts:
csum.update(part)