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=-20.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT 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 2C766C07E95 for ; Sun, 4 Jul 2021 18:20:16 +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 8B5D561364 for ; Sun, 4 Jul 2021 18:20:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B5D561364 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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 1430F82BDC; Sun, 4 Jul 2021 20:20:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Bt6jO3Fj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5CA5682BCE; Sun, 4 Jul 2021 20:20:06 +0200 (CEST) Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 69F8182B4E for ; Sun, 4 Jul 2021 20:20:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22e.google.com with SMTP id 22so18181606oix.10 for ; Sun, 04 Jul 2021 11:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QWrnxPavIAs08Dj9fquxz9tmY2b7ft53Px6AtZlWAws=; b=Bt6jO3Fj6Hbr4TGLqmYY3aUW0oK1RLXXQ6wfsw6AFNKiOXLZ3EOa2zDcI2L5m4Ts4i E2nc9fPGFxWhEdy5q8yCu6KSWaicbYnvbbveyfnMFhPUBGjCXjFlRUmCD6TwDz/WWLsM DmAEvXW+smlReXhMd7mqDeMl3HPszo2i6sfGs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QWrnxPavIAs08Dj9fquxz9tmY2b7ft53Px6AtZlWAws=; b=IDMCc7n0/7bscMh5HVicEG5atV8MvVYDYkcrVkWc3VhD/6yFVhi94y2fw59jUc80uA 2G7QoBbPQdW9l4xbAETox4HfyjJEHxw0g0JSn5GWzRPAr3jtUdXzE5UKitU1yuM+0YEb vvzOf2IQj8dJvfv8yCd8PkAndpcQ3reiuau5vUxJaeTljVqEqcp/R0S3AqxvhhuhCWX9 /tXDtKlpODsA4iCPAl4/8Szl2lt7GK0Gm71nKqZpZrlgPHbtu6WyqPt5Kapx7vP51Kar MYtYDW13iQ3euZPGWOBH5VRFvI2Vokki5Y0DPuRcPpCTqs4qv+P7YZEb5VtUN0FLpaY3 7fUQ== X-Gm-Message-State: AOAM532vnENth6a2FzrhGYjW9Abf4+QYHIfyGLjbMEwclZMjpMfDMcsy 28rlU9STmOWpKwVkIjZlEPFVh0zzWxESEtwn X-Google-Smtp-Source: ABdhPJwYLXqkT+6W2Io2fZIdHJQs1ygOSheH5kToYVz4YJqQYJfPRrIIJeHosJtc7hCbwFwaqJ/oCg== X-Received: by 2002:aca:c041:: with SMTP id q62mr8034254oif.158.1625422799606; Sun, 04 Jul 2021 11:19:59 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id z2sm2092953otm.2.2021.07.04.11.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 11:19:59 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Johan Jonker , Simon Glass Subject: [PATCH 1/8] dtoc: Avoid using subscripts on match objects Date: Sun, 4 Jul 2021 12:19:43 -0600 Message-Id: <20210704181950.1917106-2-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210704181950.1917106-1-sjg@chromium.org> References: <20210704181950.1917106-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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(-) 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(): -- 2.32.0.93.g670b81a890-goog