Skip to content

Commit 8fe2e3f

Browse files
committed
Remove py2 compatibility check
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 189a905 commit 8fe2e3f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/saml2/sigver.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -734,18 +734,14 @@ def encrypt_assertion(self, statement, enc_key, template, key_type='des-192', no
734734
:param key_type: The type of session key to use.
735735
:return: The encrypted text
736736
"""
737-
if six.PY2:
738-
_str = unicode
739-
else:
740-
_str = str
741737

742738
if isinstance(statement, SamlBase):
743739
statement = pre_encrypt_assertion(statement)
744740

745-
tmp = make_temp(_str(statement),
741+
tmp = make_temp(str(statement),
746742
decode=False,
747743
delete_tmpfiles=self.delete_tmpfiles)
748-
tmp2 = make_temp(_str(template),
744+
tmp2 = make_temp(str(template),
749745
decode=False,
750746
delete_tmpfiles=self.delete_tmpfiles)
751747

0 commit comments

Comments
 (0)