update: replace ord() with bytearray

This commit is contained in:
Daniel Martí committed 2016-03-10 16:43:37 +00:00
1 parent ee9a296b64
commit 11b8b1ca4f
1 file changed
+1 -1
+1 -1
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)