Skip to content

Commit c82c3be

Browse files
committed
Remove compatibility check for py25
``` ************* Module saml2.s_utils src/saml2/s_utils.py:385:42: E0602: Undefined variable 'sha' (undefined-variable) ``` This is referenced on a branch of a backwards compatibility check for py25. This branch will not be reached anymore and it is now removed. Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent f8b00c7 commit c82c3be

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/saml2/s_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,7 @@ def signature(secret, parts):
379379
part = part.encode('utf-8')
380380
newparts.append(part)
381381
parts = newparts
382-
if sys.version_info >= (2, 5):
383-
csum = hmac.new(secret, digestmod=hashlib.sha1)
384-
else:
385-
csum = hmac.new(secret, digestmod=sha)
382+
csum = hmac.new(secret, digestmod=hashlib.sha1)
386383

387384
for part in parts:
388385
csum.update(part)

0 commit comments

Comments
 (0)