[PATCH 1/8] dtoc: Avoid using subscripts on match objects

Walter Lozano wlozano at collabora.com
Mon Jul 5 20:04:08 CEST 2021


Hi Simon,

On 7/4/21 3:19 PM, Simon Glass wrote:
> These are not supported before Python 3.6 so avoid them.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>   tools/dtoc/src_scan.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Walter Lozano <walter.lozano at collabora.com>

Thanks!

Walter

> diff --git a/tools/dtoc/src_scan.py b/tools/dtoc/src_scan.py
> index 2db96884c85..1dbb56712a3 100644
> --- a/tools/dtoc/src_scan.py
> +++ b/tools/dtoc/src_scan.py
> @@ -555,7 +555,7 @@ class Scanner:
>                   if ids_m:
>                       ids_name = ids_m.group(1)
>                   elif m_alias:
> -                    self._driver_aliases[m_alias[2]] = m_alias[1]
> +                    self._driver_aliases[m_alias.group(2)] = m_alias.group(1)
>   
>           # Make the updates based on what we found
>           for driver in drivers.values():


More information about the U-Boot mailing list