[yocto] [AB PATCH 02/22] yoctogit.py: Fix cp construction from source to build
Burton, Ross
ross.burton at intel.com
Thu Mar 20 07:29:17 PDT 2014
On 19 March 2014 20:51, Elizabeth Flanagan <elizabeth.flanagan at 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
More information about the yocto
mailing list