We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59dd034 commit 0a79044Copy full SHA for 0a79044
1 file changed
src/onelogin/saml2/compat.py
@@ -39,6 +39,8 @@ def to_string(data):
39
40
def to_bytes(data):
41
""" return bytes """
42
+ if isinstance(data, unicode):
43
+ return data.encode("utf8")
44
return str(data)
45
46
else: # py 3.x
0 commit comments