-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
FYI, I was able to use this repo with Python 3 by changing these changes:
- imports
#from cStringIO import StringIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import datetime
import urllib
#import urlparse
import urllib.parse as urllib
- unicode -> str
elif response['content-type'].startswith('application/sparql-results+json'):
# See http://stackoverflow.com/a/19366580/2276263
# for justification of unicode() below
# return simplejson.loads(unicode(content, "utf-8"))
return simplejson.loads(str(content, "utf-8"))
Relatively untested, but potentially helpful as a start.
mickaelsilva, schoppet, seandavi, arcangelo7, joe-fagan and 1 more
Metadata
Metadata
Assignees
Labels
No labels