From nobody Thu Apr 9 12:06:45 2026 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95226267B90 for ; Mon, 9 Mar 2026 07:47:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042465; cv=none; b=cNrA7GzGgBlSCrgvadPd6Onz4mEQWdl+2+qMmJKQaVSsGb/hAG+yrhch5xUaP3foKd4PW4io9/jIyuFf/R93/7k1H8DOs8fGeT6nxxIAq8MPpjkuLVQ+Ijj2Qhfq5sHtft4b3Wp5GBlKzA5hcuixtq9gjUL1EX3YOCqHKu4GXpo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773042465; c=relaxed/simple; bh=WqbiNJuAVkpgWVxqRObSy17QjhxTIJ++1zkW/vSLoV0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QWaV75rP3i5oLF2C9pib51RND1W/EdoLisWRSWFa6sR+R2FElhQj4cgN98JbQuhrdNTGM04Vjc0HoeRz3dGIX6NqpwGwerS+kIki8UZsEaVDp2XzlvHxndMu0pcQxS24kJyKX2waqbj9MSf74gZzV1wocx4RzOdKOXG0PreeZLA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=htxhBuMY; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="htxhBuMY" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-829759ca646so2497440b3a.2 for ; Mon, 09 Mar 2026 00:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773042464; x=1773647264; darn=vger.kernel.org; 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=wTLXyt3Yodz+EGh8qX8FwOWVOCUrcElDnQxjn74aWg0=; b=htxhBuMY/gmpScsZUAoOsnKD9jccGTDnIUWNM+bH9IBNmORjcskY1Uf7pb2Dqp6oqJ AIVH4H6bW3vaJEVD0iQXJEWnPz45fk2i4reOsRcaTqtsNHyffK+yPg8Y7RKpNtMWbOZ4 Ou6Db+Arf3jsggMqibThWd0VnY4NLIG9K+HxQMP85pLmukmlXRO6U/xbVHUxxyYhHoRB Z4T6rVrlRRTwszj70NOkvz1LhOwcnOL4TDpUbz1fp0Yuqc9hBY6OBFtDuFVGtuZvoqhi NAqd4jEmlzLPJI8A/X97RtaxxVVoKpkrT93ILp7xO6v/QrqFlRRH3+XyM0p90gkAbNJ8 sjAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773042464; x=1773647264; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wTLXyt3Yodz+EGh8qX8FwOWVOCUrcElDnQxjn74aWg0=; b=ME5GvkMOdaRjNl4+D2042924Q+vcxjaMAMQmmZ4gQx/7a+zLqBoR55USXJrG5fHlUs vfbSBwoymYFH/cTyirt3P+3uaeoRZnIPTRm1+rIV2ASXqPAEOjsaiw/2YtjYXbirbDC4 1OhWA3EsRrwOMAduzTTu1PzJybuYnb6WPg6I1pM/xV517QdwfJO/5Bw4tvQSkZ3bAal/ skpsf2Sl2tpbLXld+Z97kbnX1U3xTSDXsBbospONX2X1+77AhRMiPCrCU6rhq79SAAO4 NnkBPst0rPC7wCo5RPErPuJZbPSiNOXyGAMTft4BuCTd+NG8wx9V7nRER4VjwwIjQX8y 9RLQ== X-Forwarded-Encrypted: i=1; AJvYcCVXvnCWvffKhxU3AhyKpffR5xwML/x9deCWqs+Uds2XEnHehGiMvas273g/fmKM7ZvaEioBiBW4GmoWpwE=@vger.kernel.org X-Gm-Message-State: AOJu0YyLFeBkY/tPVtcVV8RAThCYy7oY77oVQ7wKTg+isaamBjDGOob5 P0sqgiWRikOkZyyDs6ahPVQ6mKn5pnJKkMkoP1DHze+mDnRBUB9yaEEc X-Gm-Gg: ATEYQzyV0Zssg3E4Ms4zB4aYo4kuqezl+4+CBrqteKGBIiy8YCAyRRdiXp/dN1hg4pb Qx1S4KgzawJVHM1GgWe0CBZ3zxo7+bHeeXJqGDbjpy9KKWUtsyahrYLqS1V5O4i5uRoZybJoB0Q n8m2Rh1hBY/fJJlYHPmbeQumrrB8pvaWtTF6OG3cBjzRaq/8utWKdhulZbkxXcwn62kp8xhH/Tt iaGygpnPjWTbjZjf9WxPsUlSRd2LkrJJkjMvlcnphIZD33z79kaQ81pCol9lN5J4Apbhqdj2CQ1 cXHCXbtmq0g8R8y6lN0LDjS4cNexozFgc3JXf3fvfCmQxTU/06jsEx6ZzanGry2lSBQRlX7JYWI bkw8JNHDRmtwTmiHP7Wz4L70IGHt7TlrCmA6TkzQBZ2IjfN3IdwUlu+8cUVCBfgcrd2ld6R8cfC Q+02/4CeYTSKat4aPxdT9fc3ZfoNL5BlNt9bHUwy/ClrYcnd9VjiJRDC8mX2vng20M8sKI+4j0g L5DG1lsSz5d7PjJRhtr73YJ4RZqGRo= X-Received: by 2002:a05:6a00:928a:b0:829:883c:1d5e with SMTP id d2e1a72fcca58-829a2f6c373mr8736495b3a.30.1773042463869; Mon, 09 Mar 2026 00:47:43 -0700 (PDT) Received: from russ.ust.hk (ec2-13-114-166-128.ap-northeast-1.compute.amazonaws.com. [13.114.166.128]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-829a4636973sm11678394b3a.3.2026.03.09.00.47.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 00:47:43 -0700 (PDT) From: Haoyang LIU To: tttturtleruss@gmail.com, Jonathan Corbet , Shuah Khan , Mauro Carvalho Chehab , Dongliang Mu , Yanteng Si Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] tools/docs/checktransupdate.py: fix all issues reported by pylint Date: Mon, 9 Mar 2026 15:47:15 +0800 Message-ID: <20260309074716.10739-1-tttturtleruss@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260308104135.9037-1-tttturtleruss@gmail.com> References: <20260308104135.9037-1-tttturtleruss@gmail.com> 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 Content-Type: text/plain; charset="utf-8" This patch fixes all issues reported by pylint, including: 1. Format issue in logging. 2. Variable name style issue. Fixes: 63e96ce050e5 ("scripts: fix all issues reported by pylint") Signed-off-by: Haoyang LIU --- V1 -> V2: fix variable name style name and keep the format consistent with = other logging format tools/docs/checktransupdate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/docs/checktransupdate.py b/tools/docs/checktransupdate.py index e894652369a5..cc07cda667fc 100755 --- a/tools/docs/checktransupdate.py +++ b/tools/docs/checktransupdate.py @@ -76,11 +76,11 @@ def get_origin_from_trans_smartly(origin_path, t_from_h= ead): (2) Update the translation through commit HASH (TITLE) """ # catch flag for 12-bit commit hash - HASH =3D r'([0-9a-f]{12})' + hash_re =3D r'([0-9a-f]{12})' # pattern 1: contains "update to commit HASH" - pat_update_to =3D re.compile(rf'update to commit {HASH}') + pat_update_to =3D re.compile(rf'update to commit {hash_re}') # pattern 2: contains "Update the translation through commit HASH" - pat_update_translation =3D re.compile(rf'Update the translation throug= h commit {HASH}') + pat_update_translation =3D re.compile(rf'Update the translation throug= h commit {hash_re}') =20 origin_commit_hash =3D None for line in t_from_head["message"]: @@ -131,7 +131,7 @@ def check_per_file(file_path): opath =3D get_origin_path(file_path) =20 if not os.path.isfile(opath): - logging.error("Cannot find the origin path for {file_path}") + logging.error("Cannot find the origin path for %s", file_path) return =20 o_from_head =3D get_latest_commit_from(opath, "HEAD") --=20 2.53.0