From patchwork Sat Dec 18 21:54:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1570681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=WtcB95wW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JGfln1XjRz9sR4 for ; Sun, 19 Dec 2021 08:55:01 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E239783104; Sat, 18 Dec 2021 22:54:55 +0100 (CET) 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="WtcB95wW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4DAC980384; Sat, 18 Dec 2021 22:54:53 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.8 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-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 341B880384 for ; Sat, 18 Dec 2021 22:54:50 +0100 (CET) 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-xd34.google.com with SMTP id p23so8121312iod.7 for ; Sat, 18 Dec 2021 13:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S1V2IkFjgs1xBSKjH4vvNE68ymTIhjGdAD6cte7BWsU=; b=WtcB95wWFwhZcCWw/pGTVzXpeIO31YE/mEfPjyQhX9WWSx1PRw8ujhzw42oj3XmhQ+ diA6wxVeYyzQd6RJh6On7XFBmFcIz/Nan92NrmFnfM62SZUGl17FILI0erJy6ndOl0tp R5vFw5N48VabSb4ex3Wx9E57rGczPKF/1T7c8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S1V2IkFjgs1xBSKjH4vvNE68ymTIhjGdAD6cte7BWsU=; b=jdhf797WjitXyphRpST40acm5D6K84Lr0sOOO1aMfzUTHMZDcrI7Whoxh1Ot9jrmYc uW4/n8B7NmgIaDCo+vwVrlosNDtZMOdhMOhA0raZzoIdhAepgJUPkzjor9MkZmPfdMRJ JbpfUb7eNpRkqZppuoAa35ayvu9Xs6E/RpyySTrPpt4ihKOy1uQNv7O2etgX8hiB71mx jEB09n2+8IOHoasXfV6gTEE1sknTKSB1LElvF2ldW7dbSWXNYqNcqEn+y72qNCLfumdn IQUku6AG81wKJQuz/D7lATbwnsA4Yt1QXlYvVKbadryAxLHp5EoVSKLMzbBx7KB/U0oI QYNQ== X-Gm-Message-State: AOAM530I9fyBMDz1RtyHAk5z2wOxnPAf26s9H76aZRnF+emdt54Wzv+7 r4NqKvlcH8ck89Dg1fTbwQFN/hnyXg3exg== X-Google-Smtp-Source: ABdhPJwQ0XkjaynMVfdIfYhNC2ccmrq7UqwjQqbaHVsrnicXqSUgDKx2F3BmTJu1J14MqBehkqtxKA== X-Received: by 2002:a5e:da06:: with SMTP id x6mr4910130ioj.139.1639864488461; Sat, 18 Dec 2021 13:54:48 -0800 (PST) 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 y6sm6756249ilu.71.2021.12.18.13.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 13:54:48 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Masahiro Yamada , Simon Glass , Trevor Woerner Subject: [PATCH 0/6] moveconfig: Improve the pylist score a little Date: Sat, 18 Dec 2021 14:54:29 -0700 Message-Id: <20211218215435.1159723-1-sjg@chromium.org> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 There are about 240 warnings in this file. This series refactors file reading and writing, which fixes about 40. It also includes a patch to make a start on the rest, reducing the count to about 160. It also tidies up quoting. There are still about 160 warnings left. Simon Glass (6): moveconfig: Use single quotes moveconfig: Convert to ArgumentParser moveconfig: Drop check for old Python moveconfig: Use a function to write files moveconfig: Use a function to read files moveconfig: Fix some pylint errors tools/moveconfig.py | 645 +++++++++++++++++++++++--------------------- 1 file changed, 336 insertions(+), 309 deletions(-)