From nobody Fri Dec 19 22:02:42 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E34F1EA7FC; Wed, 19 Feb 2025 13:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739973480; cv=none; b=pGseD1XKjRoYNnGBzZtszIe21YT1PWi6m9GVV1SStu+XPkmNnfumvoCKlhoyqyk3ooAPlIe53NJrHUM/dowVxfbAu87i9r5MItwkPswjU1MLE4fouexeVz2juPc8ZrZlKZbAgpSbXlAnVJ29GIEN6G9iVrqsFQ1acKk3NlPm6Ac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739973480; c=relaxed/simple; bh=rBaRLeMqhVMdPKl/arUfcC4DaRWWHoHCgWfY19slLGU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=emobX3N31yM2Xy0V9GWCsV0q9B8ho2yGCgAJQD/wnVY/P05vcxbuq46FoQlN4ljvbA2DTtLGnW5YnF/hzYdeDmLTGdRWNjMl26HzrZsxNL1MLdwNOQO+mMHtTj5suendKsbMtNv6J/KtQK3crBbo+b8GHVMrBHQH48YIETWxBkk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ngStJ/MV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ngStJ/MV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB49C4CEEA; Wed, 19 Feb 2025 13:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739973479; bh=rBaRLeMqhVMdPKl/arUfcC4DaRWWHoHCgWfY19slLGU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ngStJ/MVsUwnkG7aIg+T+X+o3GoSHfSNzrOip1z+EmcxYkJiXNFNtFfghK/1qT3if sQ1FjimRwzDNAHGLKVAtsOkvqH0WnU9LReVEL7gTm7pgKZt7qH2lEkmyV9xwrzRjCK 7661RYghivpATmEdbfaQ5ZPIJ6fcmaxkpWwzp2kSQ9ec8S2rGPI20JFcfR1yL/oXMo H+XrgpUSD6z8eX1vD5+nP3QtH9rLTh3d3iX39oITvKDe2nr9hrZEsc9FcU5+AHYlDE h8o2ilVl4Tsp73oILLz3u4rbonDzd9yJsLCcmpPql/4BRWsJxMvBQ8PdXdIp91sfEK kulRxchBWdn3w== Received: from mchehab by mail.kernel.org with local (Exim 4.98) (envelope-from ) id 1tkkaL-0000000H1jZ-18Zk; Wed, 19 Feb 2025 14:57:57 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Mauro Carvalho Chehab" , linux-kernel@vger.kernel.org Subject: [PATCH 6/6] scripts/lib/kdoc/kdoc_parser.py: remove a python 3.9 dependency Date: Wed, 19 Feb 2025 14:57:41 +0100 Message-ID: <209f61b25b68dd329e7cf40d9d0bc3b574cc1d3f.1739972906.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: Mauro Carvalho Chehab Content-Type: text/plain; charset="utf-8" str.removesuffix() was added on Python 3.9, but rstrip() actually does the same thing, as we just want to remove a single character. It is also shorter. So, use it. Signed-off-by: Mauro Carvalho Chehab --- scripts/lib/kdoc/kdoc_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser= .py index 0c0fa10b942b..feac699a3893 100755 --- a/scripts/lib/kdoc/kdoc_parser.py +++ b/scripts/lib/kdoc/kdoc_parser.py @@ -1652,7 +1652,7 @@ class KernelDoc: # Group continuation lines on prototypes if self.state =3D=3D self.STATE_PROTO: if line.endswith("\\"): - prev +=3D line.removesuffix("\\") + prev +=3D line.rstrip("\\") cont =3D True =20 if not prev_ln: --=20 2.48.1