mirror of
https://github.com/servo/servo.git
synced 2025-06-26 01:54:33 +01:00
Fix str/bytes confusion when uploading to s3.
This commit is contained in:
parent
2e205ecafc
commit
462237db4c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue