Просмотр исходного кода

Patch 3.5 compat in json package

Valentin Niess 5 лет назад
Родитель
Сommit
95d8a03eb8
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      python_appimage/commands/build/app.py

+ 3 - 2
python_appimage/commands/build/app.py

@@ -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