Message ID | 20230810163212.2368374-17-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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=P1/hc3Ep; 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 4RMCG14sWsz1yYl for <incoming@patchwork.ozlabs.org>; Fri, 11 Aug 2023 02:35:21 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C963086937; Thu, 10 Aug 2023 18:32:38 +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="P1/hc3Ep"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A8E0186948; Thu, 10 Aug 2023 18:32:36 +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-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 A29B58666E for <u-boot@lists.denx.de>; Thu, 10 Aug 2023 18:32:34 +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-xd33.google.com with SMTP id ca18e2360f4ac-790bed44880so37457439f.0 for <u-boot@lists.denx.de>; Thu, 10 Aug 2023 09:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1691685153; x=1692289953; 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=ZPbczy1aTGD5XgMBW79HBvNWpuXGT5Nd6fK2cYfeKXc=; b=P1/hc3EpsjZO82tIUfVSbZVUM+8hzgLLg8oA6kExvxSTSefDrFJBoznkXtNMUbQlTa TfbcSCPeHFt6m6oYFG1vTv1G+RQjuEFBiF2V4dDY49GOTh1i5dbHInwiqB0rB93g9udQ XbYBPTxBJWUfAveybuhVHCBK/bVygBUju0dk8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691685153; x=1692289953; 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=ZPbczy1aTGD5XgMBW79HBvNWpuXGT5Nd6fK2cYfeKXc=; b=K8JpBTZ/Ktj7cqRgGhGFk8PjVIWappuS9NylZVgyy8mG7eYJ7amAkTCtFXDxGKuNjH jrbqw0LyL15uxe5MbGmkWUWfn6xRPXeZCNY8s9ShXgVewQuRj8nS+n4SIOFgRJMlsdtu ys1pAbh1/E/4qn1AXhLF/yxkLfIvCBOsGA5AS5Utz9tMyRQkKTK0RIbywvi7iTq3boaT EcKaVrg32pcTjRhKC6mio1M8jQm0kpYYTQIF3DQK1Vdp9/h3rbGUc6T0+sH635BMo74U ho3X4k4yMJDQBrWziHQj2mJZglaN6A6kKCerDxX7OT5O7pMtT845XZ5pcwlkKX9ZskzD fJ8w== X-Gm-Message-State: AOJu0Yx6+h7J34RzzKfWcNnEh2LEpXW3Y5nHFuOnuNvFu/lMbErzI0r4 wFd2eqgVYLXCY11AKHrsfC1Wm6rXKhd4o8PCuvk= X-Google-Smtp-Source: AGHT+IHsKhYSg91ysHW9fES7Vh3W9n0E3nYk+f2Ag6y5rwXv3NHMpcDTjJv2YoamDGWEcaYOBQVqfA== X-Received: by 2002:a6b:d605:0:b0:790:6629:b222 with SMTP id w5-20020a6bd605000000b007906629b222mr3981297ioa.5.1691685153302; Thu, 10 Aug 2023 09:32:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 09:32:32 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH 16/28] moveconfig: Use an encoding with open() Date: Thu, 10 Aug 2023 10:31:48 -0600 Message-ID: <20230810163212.2368374-17-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 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
moveconfig: Drop old code and tidy up
|
expand
|
diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 309ff89f7af..5896deb8c71 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -1457,12 +1457,14 @@ def do_scan_source(path, do_update): # Write out the updated information if do_update: - with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w') as out: + with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w', + encoding='utf-8') as out: print('# These options should not be enabled in SPL builds\n', file=out) for item in sorted(spl_not_found): print(item, file=out) - with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w') as out: + with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w', + encoding='utf-8') as out: print('# These options should not be enabled in Proper builds\n', file=out) for item in sorted(proper_not_found):
Fix pylint warnings about needing an explicit character encoding. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/moveconfig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)