Must pass unicode to StringIO

This commit is contained in:
Cheng Zhao 2016-08-01 22:08:29 +09:00
parent 94a17bb494
commit 9765599b49

View file

@ -206,10 +206,10 @@ def create_release_draft(github, tag):
def release_electron_checksums(github, release): def release_electron_checksums(github, release):
checksums = run_python_script( checksums = run_python_script('merge-electron-checksums.py',
'merge-electron-checksums.py', '-v', ELECTRON_VERSION) '-v', ELECTRON_VERSION)
upload_io_to_github(github, release, upload_io_to_github(github, release, 'SHASUMS256.txt',
'SHASUMS256.txt', StringIO(checksums), 'text/plain') StringIO(checksums.decode('utf-8')), 'text/plain')
def upload_electron(github, release, file_path): def upload_electron(github, release, file_path):