From patchwork Thu Aug 10 16:31:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1819955 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=IoKg3i50; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RMCDR03g1z1yfB for ; Fri, 11 Aug 2023 02:33:59 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C84B986851; Thu, 10 Aug 2023 18:32:33 +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="IoKg3i50"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 391FC866B5; Thu, 10 Aug 2023 18:32:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 300668666E for ; Thu, 10 Aug 2023 18:32:28 +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-io1-xd29.google.com with SMTP id ca18e2360f4ac-76c64da0e46so35775039f.0 for ; Thu, 10 Aug 2023 09:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691685147; x=1692289947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h1So9sAu7+YW7O4a4siYrM7pAzQBpeeSIB/YArgFsXA=; b=IoKg3i50d7I9Off4CFtJz2oGyz6OdoAE3Xb07R8hGvlKkc6Cks2m0JSAJQZ69UTpxF fbLroaKRl+jUgS9SMrBDukTTo/W+ATbC/HMhj0GvrG7wy1auMV23iqvq2HEvaf3lqOnJ 9ieQ1QR1ycI3F+R4PdNfR1i6xFIZSqTloMlBw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691685147; x=1692289947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h1So9sAu7+YW7O4a4siYrM7pAzQBpeeSIB/YArgFsXA=; b=JtKDNgZ+bAc7yM1gF3E5x0O1i+5uC0BxrC+ytG3snvsmaNMmk7okKuNwrquq/SCcqA lyYFcDxL44COOBi23i8bUSkKQKhI8SpZa/+A0AWwSnDJ9Ws2krwqVrmJN2Co6oTeZbpx RfpnD4KH2ByyOCyHSIcC9hSbWgezsNbTo4UjNBH+zba2fyibyMQxtjQG+sMrVhLczcaX +CmOoxjLi9wVmLPSyKxrtGEZMDn32Iq+bUXXRvjjJvlhlZSF2VGEXK+SDxIXcHAX6ic5 vT66grqqJiiLNn+abY8YI24Lbk7J1sQvU5j9grt0kvOX5ikoJ3gX+pm8lmGzbE74l+Xa 5mvQ== X-Gm-Message-State: AOJu0YzsAabA9mO5i9VobpVDSdo/6jrr5iXr85lqepBrmpvDwwAjmXxt BnI4zmxqDnAvkeoTFeG3sl/DEn8Sb6pa39iWGNs= X-Google-Smtp-Source: AGHT+IEB2fShj0dktC5H2LHKeQ1/MfjnLkQYE7EDGRjI2LiP/i0laSU7dkgGLexxJzD9OAdJQdsskg== X-Received: by 2002:a6b:f20a:0:b0:787:1cfc:5423 with SMTP id q10-20020a6bf20a000000b007871cfc5423mr3814623ioh.16.1691685146790; Thu, 10 Aug 2023 09:32:26 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:e0a2:950d:33f0:fddc]) by smtp.gmail.com with ESMTPSA id u21-20020a02aa95000000b0042b28813816sm487309jai.14.2023.08.10.09.32.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 09:32:26 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Masahiro Yamada , Simon Glass Subject: [PATCH 09/28] moveconfig: Correct some regular-expression strings Date: Thu, 10 Aug 2023 10:31:41 -0600 Message-ID: <20230810163212.2368374-10-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.640.ga95def55d0-goog In-Reply-To: <20230810163212.2368374-1-sjg@chromium.org> References: <20230810163212.2368374-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Use the 'r' prefix for these strings to avoid pylint warnings. Signed-off-by: Simon Glass --- tools/moveconfig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 45b86cb1db5..a282ae90d05 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -1153,10 +1153,10 @@ def prefix_config(cfg): return op + cfg -RE_MK_CONFIGS = re.compile('CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Za-z0-9_]*)') -RE_IFDEF = re.compile('(ifdef|ifndef)') -RE_C_CONFIGS = re.compile('CONFIG_([A-Za-z0-9_]*)') -RE_CONFIG_IS = re.compile('CONFIG_IS_ENABLED\(([A-Za-z0-9_]*)\)') +RE_MK_CONFIGS = re.compile(r'CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Za-z0-9_]*)') +RE_IFDEF = re.compile(r'(ifdef|ifndef)') +RE_C_CONFIGS = re.compile(r'CONFIG_([A-Za-z0-9_]*)') +RE_CONFIG_IS = re.compile(r'CONFIG_IS_ENABLED\(([A-Za-z0-9_]*)\)') class ConfigUse: def __init__(self, cfg, is_spl, fname, rest):