From 2aba3e249c6d45270f3278a0430082e68d9e01f8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 18 Jun 2018 07:21:44 +0530 Subject: [PATCH] Linux installer: Workaround for bug in 3.0 <= python <= 3.5 --- docs/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installer.py b/docs/installer.py index 038482f5a..d65383869 100644 --- a/docs/installer.py +++ b/docs/installer.py @@ -72,8 +72,8 @@ class Reporter: # {{{ def get_latest_release_data(): print('Checking for latest release on GitHub...') req = urllib.Request('https://api.github.com/repos/kovidgoyal/kitty/releases/latest', headers={'Accept': 'application/vnd.github.v3+json'}) - res = urllib.urlopen(req) - data = json.load(res) + res = urllib.urlopen(req).read().decode('utf-8') + data = json.loads(res) html_url = data['html_url'].replace('/tag/', '/download/').rstrip('/') for asset in data.get('assets', ()): name = asset['name']