Skip to content

Commit a99b869

Browse files
committed
Remove unnecesary code
1 parent 6c90f88 commit a99b869

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/onelogin/saml2/auth.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
from onelogin.saml2.authn_request import OneLogin_Saml2_Authn_Request
2525

2626

27-
try:
28-
basestring
29-
except NameError:
30-
basestring = str
31-
32-
3327
class OneLogin_Saml2_Auth(object):
3428
"""
3529
@@ -572,7 +566,7 @@ def get_last_response_xml(self, pretty_print_if_possible=False):
572566
"""
573567
response = None
574568
if self.__last_response is not None:
575-
if isinstance(self.__last_response, basestring):
569+
if isinstance(self.__last_response, compat.str_type):
576570
response = self.__last_response
577571
else:
578572
response = etree.tostring(self.__last_response, encoding='unicode', pretty_print=pretty_print_if_possible)

0 commit comments

Comments
 (0)