mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
update: replace ord() with bytearray
This commit is contained in:
parent
ee9a296b64
commit
11b8b1ca4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue