aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/package_commands.py
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2021-02-19 10:28:15 -0500
committerGitHub <noreply@github.com>2021-02-19 10:28:15 -0500
commit462237db4c2290f4a34045c9efc73347d933b956 (patch)
treefa8581eaf7e841c4f52d18cf41d19f3cc5af27d2 /python/servo/package_commands.py
parent2e205ecafcd4255669d0c50e5bfd750f2748d890 (diff)
downloadservo-462237db4c2290f4a34045c9efc73347d933b956.tar.gz
servo-462237db4c2290f4a34045c9efc73347d933b956.zip
Fix str/bytes confusion when uploading to s3.
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r--python/servo/package_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index f44786251cc..2948d6c2409 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -644,7 +644,7 @@ class PackageCommands(CommandBase):
break
sha256_digest.update(data)
package_hash = sha256_digest.hexdigest()
- package_hash_fileobj = io.BytesIO(package_hash)
+ package_hash_fileobj = io.BytesIO(package_hash).encode('utf-8')
latest_hash_upload_key = '{}/servo-latest.{}.sha256'.format(nightly_dir, extension)
s3.upload_file(package, BUCKET, package_upload_key)