]> code.ossystems Code Review - openembedded-core.git/commit
spdx.bbclass: Encode strings before passing to hashlib
authorOlof Johansson <olof.johansson@axis.com>
Mon, 16 Jul 2018 15:05:56 +0000 (17:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Jul 2018 09:13:30 +0000 (10:13 +0100)
commitb06a44f1081ea422a365e80bc79b2aeb2783d23f
treeda43313bc734b090b22ff61df9ae7e5d12bb7c8e
parent978f5a8f16bf5942aad73d761df2a00aeb36339d
spdx.bbclass: Encode strings before passing to hashlib

In python3, passing a unicode object to hashlib will result in an
exception that encourages you to encode it first.

Signed-off-by: Olof Johansson <olofjn@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/spdx.bbclass