From 9765599b4984adeb3cc0082282ec4c9ce4e1cdab Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 1 Aug 2016 22:08:29 +0900 Subject: [PATCH] Must pass unicode to StringIO --- script/upload.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/upload.py b/script/upload.py index 8268dd091241..ee97220a82be 100755 --- a/script/upload.py +++ b/script/upload.py @@ -206,10 +206,10 @@ def create_release_draft(github, tag): def release_electron_checksums(github, release): - checksums = run_python_script( - 'merge-electron-checksums.py', '-v', ELECTRON_VERSION) - upload_io_to_github(github, release, - 'SHASUMS256.txt', StringIO(checksums), 'text/plain') + checksums = run_python_script('merge-electron-checksums.py', + '-v', ELECTRON_VERSION) + upload_io_to_github(github, release, 'SHASUMS256.txt', + StringIO(checksums.decode('utf-8')), 'text/plain') def upload_electron(github, release, file_path):