Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5BC4C07E99 for ; Mon, 5 Jul 2021 18:04:22 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 137BC61261 for ; Mon, 5 Jul 2021 18:04:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 137BC61261 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D273B82BCE; Mon, 5 Jul 2021 20:04:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D01FE82BD7; Mon, 5 Jul 2021 20:04:17 +0200 (CEST) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3FD0182BB4 for ; Mon, 5 Jul 2021 20:04:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wlozano@collabora.com Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: wlozano) with ESMTPSA id D6EAE1F427F1 Subject: Re: [PATCH 1/8] dtoc: Avoid using subscripts on match objects To: Simon Glass , U-Boot Mailing List Cc: Johan Jonker References: <20210704181950.1917106-1-sjg@chromium.org> <20210704181950.1917106-2-sjg@chromium.org> From: Walter Lozano Message-ID: Date: Mon, 5 Jul 2021 15:04:08 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210704181950.1917106-2-sjg@chromium.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 > --- > tools/dtoc/src_scan.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Walter Lozano 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():