[Sugar-devel] [PATCH 1/2] Fix presence detection of keyboard layouts/options

Sascha Silbe sascha-ml-reply-to-2011-4 at silbe.org
Sat Oct 8 15:16:38 EDT 2011


Excerpts from Daniel Drake's message of 2011-10-06 16:58:53 +0200:

> "foo is []" is not a valid way of checking if a list is empty
> as this code intends.
> 
> "foo" alone as a boolean operator is an equivalent length check,
> and also serves as a "is not None" check too.

Thanks for the patch!

Acked-By: Sascha Silbe <silbe at activitycentral.com>

Sascha

-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20111008/8c6efc27/attachment.pgp>


More information about the Sugar-devel mailing list