Auto merge of #28169 - servo:jdm-patch-49, r=jdm

Fix some residual python2isms

Fixes nightly and doc builds.
This commit is contained in:
bors-servo 2021-02-19 17:35:10 -05:00 committed by GitHub
commit 1b58747ce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

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