aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2021-02-24 23:08:05 -0500
committerGitHub <noreply@github.com>2021-02-24 23:08:05 -0500
commitdbc7919a28da153b1129e06e30a55ef89493f47e (patch)
tree9bc8dd8bca008585241fb10da3d39cacafab5d96 /python
parent04b89d1b53a9dce23fd9adab686f880906bcbdc3 (diff)
downloadservo-dbc7919a28da153b1129e06e30a55ef89493f47e.tar.gz
servo-dbc7919a28da153b1129e06e30a55ef89493f47e.zip
Fix encoding call.
Diffstat (limited to 'python')
-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 2948d6c2409..40347661761 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).encode('utf-8')
+ 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)