Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp838990rdb; Thu, 30 Nov 2023 22:55:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbo1cP+Q/WmQk1FqvQIjTnKDEm3UDBN0ou6C+ts7/zdrjEBVB49kwB1QT7P4+bHGyeINQa X-Received: by 2002:a17:90b:2291:b0:286:576a:74d4 with SMTP id kx17-20020a17090b229100b00286576a74d4mr1780817pjb.17.1701413733742; Thu, 30 Nov 2023 22:55:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701413733; cv=none; d=google.com; s=arc-20160816; b=OCAS+BOqKbYW/Wgk+4/CnzPUi6yEggJbY6IORliMdZM6Adi9rqyxTrUBjTz6NEjMkY JoOnowCoBzFcqPxE24wON6tRkwE5cm2xdOPFyTgswlsYlitVJEUsy4BfZxhhDEmuHlZM VorF8H1fF8uqaAmnUCzNaK0lhSg+shG3m/HKcevqWAlolXxQWZGWwfD+czmO62Ovv/fD wNTWsYBkocr5cCMP9LuBmfZ4n6T2vGF1KbggW8crJ+cc7N2UyHHk7m47nigw6wPKFxOp s0BrC0AGE6r1su9mACXJ/n6aMt/OIKKDM0bxbqU819nZJ++SknmXQlD/r9AtLByLCRRp Cdow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=S7eAXn7qs5RKD5Q9YsN5/DgVzMsOp1DFQ7KF8Pnzfr8=; fh=fByzym59E7zN5AKjSntTYM0yy1Mq79MtHlM5CSZvlBc=; b=k3+8GX3hw1IRoOaMCd5eMq68DQhOtP4cuKtphzRpSIYFAYiqluumg0SGlbmgMufG6Y TLwltEJ6FShWsk0NRAjkgWyELbqop9y2Y8fv3DWhADjtkfQmI47AnA/LXq3rAi92Jcqr RhRy+oHmMQY5Lq8AdPzFlueLF6jU9ZGGPcYDqySIbeTdA46AGbXW3ZGG3aquaYQgDw0S z7IUH1c/oDbX/YMCopW6zxE8OwDZpw2vpVyKQDIUY3JQOW62kxHVPWHoaBg/XKn20CM2 7kpU3dtqcYUPOVklggfa7qrxgk1Emsg5D15Vz0HaKojzJg8t4uaLa6eu+G+qZjwqz1JM 2F6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=vaC3ywoC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a2-20020a17090a854200b002865834e839si758986pjw.56.2023.11.30.22.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 22:55:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@avm.de header.s=mail header.b=vaC3ywoC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=avm.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5B20D8315073; Thu, 30 Nov 2023 22:55:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229507AbjLAGzP (ORCPT + 99 others); Fri, 1 Dec 2023 01:55:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjLAGzO (ORCPT ); Fri, 1 Dec 2023 01:55:14 -0500 X-Greylist: delayed 361 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 30 Nov 2023 22:55:19 PST Received: from mail.avm.de (mail.avm.de [212.42.244.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75DEF171A for ; Thu, 30 Nov 2023 22:55:19 -0800 (PST) Received: from mail-auth.avm.de (unknown [IPv6:2001:bf0:244:244::71]) by mail.avm.de (Postfix) with ESMTPS; Fri, 1 Dec 2023 07:49:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=avm.de; s=mail; t=1701413356; bh=UkHNm551AemnKql0mWZXE1Rzd6MlbxdsnUeJmPzDx9E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vaC3ywoCokr58m2guflRShHIjBHDySrAqb7IWv6oCUTRVVxIqYansECY/EQ6H94zV 7BH34Gec5kwu1NYdtQWGEl0xoeVU3amJLXNeEUk+FMIAY55FIEH50yjWKlft7bJAQQ 5fJUdMRlZYKiSenptrFXxxu0th8c47pRTFiHGbjw= Received: from buildd.core.avm.de (buildd-sv-01.avm.de [172.16.0.225]) by mail-auth.avm.de (Postfix) with ESMTPA id 91CCA80596; Fri, 1 Dec 2023 07:49:15 +0100 (CET) Received: by buildd.core.avm.de (Postfix, from userid 1000) id 835A91811CC; Fri, 1 Dec 2023 07:49:15 +0100 (CET) Date: Fri, 1 Dec 2023 07:49:13 +0100 From: Nicolas Schier To: Hu Haowen <2023002089@link.tyut.edu.cn> Cc: gregkh@linuxfoundation.org, akpm@linux-foundation.org, masahiroy@kernel.org, ndesaulniers@google.com, ojeda@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] scripts/show_delta: reformat code Message-ID: References: <20231201053540.9534-1-2023002089@link.tyut.edu.cn> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x9YCRS3AC2fWuNsT" Content-Disposition: inline In-Reply-To: <20231201053540.9534-1-2023002089@link.tyut.edu.cn> Organization: AVM GmbH X-purgate-ID: 149429::1701413356-B56E3A59-5B79312B/0/0 X-purgate-type: clean X-purgate-size: 2617 X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 22:55:30 -0800 (PST) --x9YCRS3AC2fWuNsT Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Fri, 1 Dec 2023 07:49:13 +0100 From: Nicolas Schier To: Hu Haowen <2023002089@link.tyut.edu.cn> Cc: gregkh@linuxfoundation.org, akpm@linux-foundation.org, masahiroy@kernel.org, ndesaulniers@google.com, ojeda@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] scripts/show_delta: reformat code On Fri, Dec 01, 2023 at 01:35:40PM +0800, Hu Haowen wrote: > Correct some lines in irregular coding style to make them look more > harmonious and fit the common coding regulations in Python. >=20 > Signed-off-by: Hu Haowen <2023002089@link.tyut.edu.cn> > --- > scripts/show_delta | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) >=20 > diff --git a/scripts/show_delta b/scripts/show_delta > index 291ad65e3089..33446adce74b 100755 > --- a/scripts/show_delta > +++ b/scripts/show_delta > @@ -13,7 +13,7 @@ import sys > import string > =20 > def usage(): > - print ("""usage: show_delta [] > + print("""usage: show_delta [] Hi, thanks for your patch. What Miguel already noticed for v1 is valid for v2, too: there are still inconsistencies in the coding style, e.g. `print (...)` and `print(...)`. To simplify a consistent coding style for future work on the script, using an external tool for reformatting (and mentioning it in the commit message) would be helpful. Miguel suggested Black or Ruff, I think this is a good idea. Kind regards, Nicolas --x9YCRS3AC2fWuNsT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEDv+Fiet06YHnC6RpiMa8nIiabbgFAmVpgekACgkQiMa8nIia bbiuKA//Var3w983693LJ/e1B3Mn0KJvP4LlvdFlcoevj6NnSa4RLO7BFVLwPfPN LV/v4Be6+Qe8SwLwCZTL1QPyF98F1tP9/zHetlEnMw2zG+Il+dvAqmpkc4bmYntu JROh0n9C9hUmka0xiEYrEPgU7sEn6HXXjhiqliLCfeEsnmnaFdLr6RIAo7n5U5Za kxVZc+Inp4wi3sGD2QnzuJOEMUgvtrSJBtQYniWz54ZZju0cMqGZWAzK7PMItcen fwzh38U3UC/p7bACiZPz/BLDqVOyISZV4TT7geMUUPHLs+U7wY/kovZEoNVSMqBQ /nV4t2xaQ0+xifxRHGHSHIWhzJl5Q4SDKTsxXR0hRXQK6hHWwILFUjq6s52GecNi coUWrp0zqh/qniCPGvSWaH9xkYBhTJKj5V45eiFdhzn/bAIa+OuKE8si0aF7ZJ1t 519hXo017GU9IUQCu0tqMXs4J02flRgdFjcqvaW4zmOu1npKxkAGxkJe3so0xKnV /2e4kwsiYgEqAfoVXINJk9CD9D1C8+Szh9bv9wbpidELRlQnve3PdgrrocRZX2JO S6/1hR6AwJXfBYQ+xbZZZeVM6HHhHBlAL55+GNb1CAlBGq8TF0Xgl9V4nsSko3Hc aPIYEaRdPJUycLNP3NXI3R+NXI8TTBjgDJaKlTJQFYJ26PaK4Yw= =fejp -----END PGP SIGNATURE----- --x9YCRS3AC2fWuNsT--