summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-10 11:39:04 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 23:32:41 +0100
commit909f1b7bf83d17efd06bcf470364385efe2704be (patch)
tree25b87ef6c5141c06e7537b5d37f5ce88310443fb /documentation/dev-manual
parent51738f9fa5aa07f19f24dd4a55b1fd8d210c6b3f (diff)
downloadpoky-909f1b7bf83d17efd06bcf470364385efe2704be.tar.gz
bitbake: toaster: get rid of using reduce
Replaced compicated calls of reduce with more clear code. As reduce was removed from python 3 this change is mandatory for the code to work on both pythons. Here is an example change for illustration purposes: original code: querydict = dict(zip(or_keys, or_values)) query = reduce(operator.or_, map(lambda x: __get_q_for_val(x, querydict[x]), [k for k in querydict]))) replaced with: query = None for key, val in zip(or_keys, or_values): x = __get_q_for_val(k, val) query = query | x if query else x [YOCTO #9584] (Bitbake rev: 0a25b723431602dc5eeb10a4002872c05b390f23) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
0 files changed, 0 insertions, 0 deletions