mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
update: replace ord() with bytearray
This commit is contained in:
parent
ee9a296b64
commit
11b8b1ca4f
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user