waf bsp_defaults sometimes includes multiple BSPs

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Oct 2 14:28:12 UTC 2020


On 02/10/2020 16:26, Joel Sherrill wrote:

>     Maybe we should change it to:
>
>     def is_in_white_list(variant, white_list):
>          if not white_list:
>              return True
>          for pattern in white_list:
>              if re.match(pattern + "$", variant):
>                  return True
>          return False
>
>
> Yes. That would seem to be more right. Should it have a ^ at the front?
No, for the re.match() you don't need the ^.


More information about the devel mailing list