On 19 March 2014 20:51, Elizabeth Flanagan <[email protected]> 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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto