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 <si...@activitycentral.com> Sascha -- http://sascha.silbe.org/ http://www.infra-silbe.de/
signature.asc
Description: PGP signature
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel