Merge pull request #2 from auria/issues-1

Fix py3 "bytes input" needed when parsing xml (issues-1)
This commit is contained in:
Dmitrii Shcherbakov 2019-02-12 21:39:40 +03:00 committed by GitHub
commit b3141b4349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ class KeystoneSAMLMellonConfigurationAdapter(
with open(idp_metadata_path) as f:
content = f.read()
try:
etree.fromstring(content)
etree.fromstring(content.encode())
self._idp_metadata = content
self._validation_errors['idp-metadata'] = None
except etree.XMLSyntaxError:
@ -212,7 +212,7 @@ class KeystoneSAMLMellonConfigurationAdapter(
with open(info_path) as f:
content = f.read()
try:
etree.fromstring(content)
etree.fromstring(content.encode())
self._sp_signing_keyinfo = content
self._validation_errors['sp-signing-keyinfo'] = None
except etree.XMLSyntaxError: