summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-04-05 12:38:25 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-04-05 12:38:36 (GMT)
commit1e02302fd9c651f9f98c737e930acb2dbe835bef (patch)
tree2256938af8e7aa06b11cd51cba2e75f8be58072e
parentffadd1a618cf256bdf5e1e806ea89e04a450b7be (diff)
downloaddjango-mellon-1e02302fd9c651f9f98c737e930acb2dbe835bef.zip
django-mellon-1e02302fd9c651f9f98c737e930acb2dbe835bef.tar.gz
django-mellon-1e02302fd9c651f9f98c737e930acb2dbe835bef.tar.bz2
python3: get metadata from URL as a string
-rw-r--r--mellon/adapters.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mellon/adapters.py b/mellon/adapters.py
index fb79c6c..e7bdece 100644
--- a/mellon/adapters.py
+++ b/mellon/adapters.py
@@ -44,7 +44,7 @@ class DefaultAdapter(object):
u'retrieval of metadata URL %r failed with error %s for %d-th idp',
idp['METADATA_URL'], e, i)
continue
- idp['METADATA'] = response.content
+ idp['METADATA'] = response.text
elif 'METADATA' in idp:
if idp['METADATA'].startswith('/'):
idp['METADATA'] = open(idp['METADATA']).read()