Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp465931rdb; Thu, 30 Nov 2023 09:13:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHE68uHwdSt1GiRRmgQmbSjw/hkE/npOPGBG0PQIdat2884iYUnmO+3VHR+fVnUODPsiadN X-Received: by 2002:a05:6a00:4198:b0:6c3:1b8e:eb37 with SMTP id ca24-20020a056a00419800b006c31b8eeb37mr24861952pfb.6.1701364439144; Thu, 30 Nov 2023 09:13:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701364439; cv=none; d=google.com; s=arc-20160816; b=CW6sv146GzxJlx3dHzohgGsJ6nlutnGS+YhoIetmyyBCsc1pr0QRkejH0FSoerJsPU 7Ww6b3PqyUFWxzi3WI0tV3rNKwjFh8BSISNDZpvtt7O1ad4HDr8Tntl177XemZaf165j x6Vl7C3y+/2LBA4u1PeS/EzUAvk4xi+SSSLiwujrQDrcdtDUeeSGREaXPmTmz/tUG+qJ JvtoQoGd+diuPtYBhkO3q1DR30f+ar3lC50Bpt0vSW+sFFA0WV/fe1QaI+0XLlK4/l0I 7juYYWWnsIkNL+qZKU1OyTqqDby32WwuS27aitXzuQadv4Q2Jg0qdDFM589Nhaba9LnX iqog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SSy2x0/A5lqgvXskOAf5WXZ0MEkLef5VOeP9wtqhR1I=; fh=kUIzEZVDH8cqX76Jxr3Kuw+L7Vv07HhkzsGOUUObQYE=; b=f7m0EPu7KEzGWS//x2YzVSVrtsn1UPMCb+LNIEE85fXXdrOkbThg2IPop/2AO7kqtg +k6+IQbwDAA+WQ/0bT+YoygtpUO/6rexe0XNjwfX8/AARI5AkOW78LOZ7dliKOJHQn1M 1DDxKbcgcgJJEKUu7HHDtgjvLALJ0thHTvcemWgCs26iSQAlV7KlzmuS/ET1+XJsUizk oXRgHC7MYqaRb/mH/43u9Hyv7K4+q6PZ7FdmmYZd63tphLCx7TyB2CBEypA/pbuVYgyR F0npaMiHetoMVrWtL19ziMg41/vC/6gbHpPpHEe4GjOvLhSxcBg1uQysgUr8IFFnuBo/ XRPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DabvQYVN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y127-20020a636485000000b005b8f0ff9b35si1633605pgb.406.2023.11.30.09.13.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:13:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DabvQYVN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7F0378059E51; Thu, 30 Nov 2023 09:13:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232220AbjK3RNs (ORCPT + 99 others); Thu, 30 Nov 2023 12:13:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231796AbjK3RNr (ORCPT ); Thu, 30 Nov 2023 12:13:47 -0500 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E61710D1 for ; Thu, 30 Nov 2023 09:13:54 -0800 (PST) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5cfc3a48ab2so12763527b3.0 for ; Thu, 30 Nov 2023 09:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701364433; x=1701969233; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SSy2x0/A5lqgvXskOAf5WXZ0MEkLef5VOeP9wtqhR1I=; b=DabvQYVNoU/wp/XHwPyb/LjvPOu5iO5ocSw2fDsBuOGtbBpkrZVf4x22UkZZxy5q8h prDtpBFQzEQo6e50cAet7ohFvPpUVwGWIWGSYR6HFnqxuEg6+BnV3kD39swvH2LhG+xW n//zrxF0w3re3zGavUIE4FtG6tpSjuRcDTGy0rbjvRPzEMwXF3FWfwjVw0GNz4CTRMl8 Dr63ypua9YWEHDAn50CUYvv/nelMoCP2Lvv7npgqrNSsail85JzbrqjTuUBUQnFBNAAX da56T0X9L+IKxT57J+3+UIJYxX88IZU73c4c5Z43bKYyJpTpxwvdhBoh35yW2h1BdFYp oQjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701364433; x=1701969233; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SSy2x0/A5lqgvXskOAf5WXZ0MEkLef5VOeP9wtqhR1I=; b=addOKzr/8fP3W+b0WbW8yaONd8SXjqx5gISwXPiZxU04Ldv6T1JQJyqFiNkwRMJ+Jb ue03PhbqV113arcAJb6HS2X18KELFRkzJT7OByQmD1Qo4WGvrI+mj0vvGDPvdIydzDVM wl68sdTypvQO+OuMD2PmwQ8lM1RjiBnGF//ImKi1aLNfuJhrilFG1NrFfpoztgZ2tb0O b+bwCCnSlvpyLYUk3Ny+FO6uVJLHpLNmDlkZz+JMyODZPgVJyZoH9UGGFLIyBWZUWec/ 0qHw0UC4Nwk/0rTNk8CSSTulLk1PHmJdsRvYVuc943FYoQxgDEc8yAXCBExqIlIcV7Fq JNAA== X-Gm-Message-State: AOJu0YydKyXvaMTXWqfUIoCoMaYWLM0k5bQdGfoVrFHnYH1YTTtHiAUP WC2p7Svw+P02pRL/ZrAQQ+ETFBgx93uutbkdgZg= X-Received: by 2002:a81:b65f:0:b0:5d3:d439:aabe with SMTP id h31-20020a81b65f000000b005d3d439aabemr457865ywk.26.1701364433258; Thu, 30 Nov 2023 09:13:53 -0800 (PST) MIME-Version: 1.0 References: <20231130143822.17173-1-2023002089@link.tyut.edu.cn> In-Reply-To: <20231130143822.17173-1-2023002089@link.tyut.edu.cn> From: Miguel Ojeda Date: Thu, 30 Nov 2023 18:13:42 +0100 Message-ID: Subject: Re: [PATCH] scripts/show_delta: reformat code To: Hu Haowen <2023002089@link.tyut.edu.cn> Cc: gregkh@linuxfoundation.org, akpm@linux-foundation.org, masahiroy@kernel.org, ndesaulniers@google.com, n.schier@avm.de, ojeda@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:13:57 -0800 (PST) On Thu, Nov 30, 2023 at 3:49=E2=80=AFPM Hu Haowen <2023002089@link.tyut.edu= .cn> wrote: > > - if string.find(rest, base_str)=3D=3D1: > + if string.find(rest, base_str) =3D=3D 1: If this is changed, shouldn't be others like: > if arg=3D=3D"-b": > elif arg=3D=3D"-h": be changed too? In other words, it seems this was done manually. Should we instead introduce/use something like Black or Ruff if we are going to do this sort of changes? Thanks! Cheers, Miguel