diff --git a/GitHub/plugin.py b/GitHub/plugin.py index a0c413b..d1b3e75 100644 --- a/GitHub/plugin.py +++ b/GitHub/plugin.py @@ -107,7 +107,10 @@ def query(caller, type_, uri_end, args): args = dict([(x,y) for x,y in args.items() if y is not None]) url = '%s/%s/%s?%s' % (caller._url(), type_, uri_end, urlencode(args)) - return json.load(utils.web.getUrlFd(url)) + if sys.version_info[0] >= 3: + return json.loads(utils.web.getUrl(url).decode('utf8')) + else: + return json.load(utils.web.getUrlFd(url)) ##################### # Plugin itself