Преглед на файлове

Patch 3.5 compat in json package

Valentin Niess преди 5 години
родител
ревизия
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