Fix encoding call.

This commit is contained in:
Josh Matthews 2021-02-24 23:08:05 -05:00 committed by GitHub
parent 04b89d1b53
commit dbc7919a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)