Skip to content

Commit

Permalink
fix artifacts script
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Feb 15, 2016
1 parent 8aaf1ca commit 92c80f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


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):
Expand All @@ -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():
Expand Down

0 comments on commit 92c80f3

Please sign in to comment.