mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Linux installer: Workaround for bug in 3.0 <= python <= 3.5
This commit is contained in:
parent
f66db65974
commit
2aba3e249c
1 changed files with 2 additions and 2 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue