[Python-modules-commits] [python-pyld] 195/276: Decode binary response.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:48:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-pyld.
commit 52344d74d1a09d4c7b5788b3cf3ef1ac9a9b2ee9
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Tue Sep 10 15:16:21 2013 -0400
Decode binary response.
---
lib/pyld/jsonld.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pyld/jsonld.py b/lib/pyld/jsonld.py
index daea33c..e2ad906 100644
--- a/lib/pyld/jsonld.py
+++ b/lib/pyld/jsonld.py
@@ -293,7 +293,7 @@ def load_document(url):
doc = {
'contextUrl': None,
'documentUrl': url,
- 'document': handle.read()
+ 'document': handle.read().decode('utf8')
}
doc['documentUrl'] = handle.geturl()
headers = dict(handle.info())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git
More information about the Python-modules-commits
mailing list