From: Daniel Martí Date: Mon, 4 Jan 2016 17:51:39 +0000 (+0100) Subject: update: replace encode('hex') with hexlify X-Git-Tag: 0.7.0~86^2~21 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8b3c27cb479571e59657f03a261a98da0e42d216;p=fdroidserver.git update: replace encode('hex') with hexlify --- diff --git a/fdroidserver/update.py b/fdroidserver/update.py index fdf96536..f1fb8083 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -400,7 +400,7 @@ def getsig(apkpath): cert_encoded = encoder.encode(certificates)[4:] - return hashlib.md5(cert_encoded.encode('hex')).hexdigest() + return hashlib.md5(hexlify(cert_encoded)).hexdigest() def scan_apks(apps, apkcache, repodir, knownapks, use_date_from_apk=False):