On 19 March 2014 20:51, Elizabeth Flanagan <elizabeth.flana...@intel.com> wrote:
> +        if "poky" in self.layername or \
> +           "oecore" in self.layername or \
> +           "eclipse" in self.layername:

Do you actually need to do substring comparisons (in vs is) there?  I
suspect not, so I prefer this idiom as it involves less repetition:

if self.layername in ('poky', 'oecore', 'eclipse')

Ross
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to