summaryrefslogtreecommitdiff
path: root/src/saml2/httpbase.py
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2015-05-20 23:31:17 -0700
committerClint Byrum <clint@fewbar.com>2015-05-21 00:13:26 -0700
commit9c91638891c9b29d8b1b7032422af5f8aa596fd9 (patch)
tree0400e8120c655adda51797da34e59cf292d3bcbe /src/saml2/httpbase.py
parent3db1cb25d83e3665d030b1b81a5f1c0755cb1aa6 (diff)
downloadpysaml2-9c91638891c9b29d8b1b7032422af5f8aa596fd9.tar.gz
Fix more basestring py3k issues
basestring has been removed from python 3.
Diffstat (limited to 'src/saml2/httpbase.py')
-rw-r--r--src/saml2/httpbase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saml2/httpbase.py b/src/saml2/httpbase.py
index 79d4ba00..2da045fd 100644
--- a/src/saml2/httpbase.py
+++ b/src/saml2/httpbase.py
@@ -1,4 +1,5 @@
import calendar
+import six
from six.moves import http_cookiejar
import copy
import re
@@ -260,7 +261,7 @@ class HTTPBase(object):
:param typ: Whether a Request, Response or Artifact
:return: dictionary
"""
- if not isinstance(message, basestring):
+ if not isinstance(message, six.string_types):
message = "%s" % (message,)
return http_form_post_message(message, destination, relay_state, typ)
@@ -375,7 +376,7 @@ class HTTPBase(object):
:param key: Key to use for signing
:return: dictionary
"""
- if not isinstance(message, basestring):
+ if not isinstance(message, six.string_types):
message = "%s" % (message,)
return http_redirect_message(message, destination, relay_state, typ,