[bitbake-devel] [PATCH] runqueue: Only attempt to print closest matching task if there is a match

Chris Larson clarson at kergoth.com
Wed Jan 22 16:16:43 UTC 2014


On Tue, Jan 21, 2014 at 3:31 PM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> +            if len(matches):


Minor quibble, this could almost be considered an antipattern in python :)
Whenever you see yourself doing this, you're almost always better off
removing the len(). Python can test if a container is empty.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20140122/0accf505/attachment-0002.html>


More information about the bitbake-devel mailing list