From: Richard Purdie Date: Mon, 27 Jan 2014 21:47:27 +0000 (+0000) Subject: bitbake: runqueue: Simplify pointless len() usage X-Git-Tag: rev_ivi_2015_02_04~9488 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65edf16e498cb0e073115735bcbb00dafbdf2839;p=scm%2Fbb%2Ftizen-distro.git bitbake: runqueue: Simplify pointless len() usage (Bitbake rev: 1f2bdd1b99075babe8dba91478cfc5d3501676cb) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index bf2dc54..0475ee2 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1224,7 +1224,7 @@ class RunQueue: if match is None: bb.fatal("Can't find a task we're supposed to have written out? (hash: %s)?" % h) matches = {k : v for k, v in matches.iteritems() if h not in k} - if len(matches): + if matches: latestmatch = sorted(matches.keys(), key=lambda f: matches[f])[-1] prevh = __find_md5__.search(latestmatch).group(0) output = bb.siggen.compare_sigfiles(latestmatch, match, recursecb)