Auto merge of #28193 - servo:jdm-patch-46, r=jdm

Fix more python2isms
This commit is contained in:
bors-servo 2021-02-25 01:19:51 -05:00 committed by GitHub
commit 60b642968b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 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).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)