]> code.ossystems Code Review - openembedded-core.git/commit
oe.types.boolean: treat None as False
authorBinghua Guan <freebendy@gmail.com>
Sat, 30 Jun 2018 09:53:34 +0000 (17:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Jul 2018 23:23:53 +0000 (00:23 +0100)
commit3048e9fa0df6b1edf79bd1723e0fc022c3332af1
treede79d7885d6818c7f21e16d0a8401010dd4537bb
parent32dded1bd2f6c5cf6437330830399b72f15096c4
oe.types.boolean: treat None as False

It is better to return False for None. E.g. checking an undefined
variable returned d.getVar().

Signed-off-by: Binghua Guan <freebendy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/types.py