Patch 3.5 compat in json package

This commit is contained in:
Valentin Niess
2020-04-04 01:02:31 +02:00
parent 8c5bdaf5b7
commit 95d8a03eb8

View File

@@ -36,8 +36,9 @@ def execute(appdir, name=None, python_version=None, linux_tag=None,
'''
# Download releases meta data
releases = json.load(
urlopen('https://api.github.com/repos/niess/python-appimage/releases'))
content = urlopen(
'https://api.github.com/repos/niess/python-appimage/releases').read()
releases = json.loads(content.decode())
# Fetch the requested Python version or the latest if no specific version