diff options
author | Clint Byrum <clint@fewbar.com> | 2015-05-28 09:22:20 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2015-05-28 09:50:58 -0700 |
commit | 9ec77050e8632691d7a90df588960b14c7d696aa (patch) | |
tree | 2e6f504acaac5089632501762962235707c289fa /src/saml2/saml.py | |
parent | efa12f0860ab2ec9a2eefa25e0775604a00e0b22 (diff) | |
download | pysaml2-9ec77050e8632691d7a90df588960b14c7d696aa.tar.gz |
Fix basic python3 issues in test_02_saml
- Strings/bytes encoding/decoding where necessary.
- Random hash seed producing test fails sometimes on keys(), sorting
lists fixes this.
Diffstat (limited to 'src/saml2/saml.py')
-rw-r--r-- | src/saml2/saml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/saml.py b/src/saml2/saml.py index f1bc373e..a7647829 100644 --- a/src/saml2/saml.py +++ b/src/saml2/saml.py @@ -119,7 +119,7 @@ def _verify_value_type(typ, val): if typ == XSD + "base64Binary": import base64 - return base64.decodestring(val) + return base64.decodestring(val.encode('utf-8')) class AttributeValueBase(SamlBase): |