update: replace ord() with bytearray

This commit is contained in:
Daniel Martí 2016-01-04 17:29:40 +01:00
parent ee9a296b64
commit 11b8b1ca4f

View file

@ -712,7 +712,7 @@ repo_pubkey_fingerprint = None
def cert_fingerprint(data):
digest = hashlib.sha256(data).digest()
ret = []
ret.append(' '.join("%02X" % ord(b) for b in digest))
ret.append(' '.join("%02X" % b for b in bytearray(digest)))
return " ".join(ret)