diff options
author | Bob Ippolito <bob@redivi.com> | 2016-02-15 12:18:15 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2016-02-15 12:22:56 -0800 |
commit | 92c80f3b29c4d8694deb72779fa65f8de0ff8965 (patch) | |
tree | aef2dad2b3b5582bb815dbdab410978d3c6992c5 /scripts | |
parent | 8aaf1ca7d6cda799997815591c1c82e70c51a633 (diff) | |
download | simplejson-92c80f3b29c4d8694deb72779fa65f8de0ff8965.tar.gz |
fix artifacts script
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/artifacts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/artifacts.py b/scripts/artifacts.py index 48ae2fb..4b821cf 100644 --- a/scripts/artifacts.py +++ b/scripts/artifacts.py @@ -9,7 +9,7 @@ import subprocess def get_json(url): - return json.load(io.TextIOWrapper(urlopen(url), encoding='utf-8')) + return json.loads(urlopen(url).read().decode('utf-8')) def download_file(src_url, dest_path): @@ -36,7 +36,7 @@ def download_github_artifacts(): release = get_json( 'https://api.github.com/repos/simplejson/simplejson/releases/latest') for asset in release['assets']: - download_file(asset['url'], 'dist/{name}'.format(**asset)) + download_file(asset['browser_download_url'], 'dist/{name}'.format(**asset)) def main(): |