diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2019-02-04 17:52:30 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2019-02-04 17:52:30 +0200 |
commit | 2dc351e65ee0637ddc242c9eff128a28aa4f6f6c (patch) | |
tree | dee251e0a2b50968468e5f20061bd4084bf5f6bc /example | |
parent | 69711c3adfdb49544d80761930f4a8474aff92cd (diff) | |
download | pysaml2-2dc351e65ee0637ddc242c9eff128a28aa4f6f6c.tar.gz |
Fix examples python3 compatibility
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'example')
-rwxr-xr-x | example/sp-wsgi/sp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/sp-wsgi/sp.py b/example/sp-wsgi/sp.py index 216c3a94..485d802d 100755 --- a/example/sp-wsgi/sp.py +++ b/example/sp-wsgi/sp.py @@ -705,7 +705,9 @@ def main(environ, start_response, sp): body.append("<br><a href='/logout'>logout</a>") body = [ - item if not isinstance(item, six.binary_type) else item.encode("utf-8") + item + if isinstance(item, six.binary_type) + else item.encode("utf-8") for item in body ] |