mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-10-23 12:42:44 -04:00
update: replace ord() with bytearray
This commit is contained in:
1 parent
ee9a296b64
commit
11b8b1ca4f
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user