From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3D727158094 for ; Sun, 10 Jul 2022 18:41:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80B7CE0C40; Sun, 10 Jul 2022 18:41:08 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6BFA4E0C40 for ; Sun, 10 Jul 2022 18:41:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A4CC83406BF for ; Sun, 10 Jul 2022 18:41:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA43F105 for ; Sun, 10 Jul 2022 18:41:05 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1657477518.68159035c6479e313c33dd31d19d42d3178f1235.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/equery/check.py X-VCS-Directories: pym/gentoolkit/equery/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 68159035c6479e313c33dd31d19d42d3178f1235 X-VCS-Branch: master Date: Sun, 10 Jul 2022 18:41:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 72e9da12-bbb9-4676-b3ac-2622d98b2377 X-Archives-Hash: 3eeeacad949ec179354a98da096ad1d2 commit: 68159035c6479e313c33dd31d19d42d3178f1235 Author: Brian Dolbec gentoo org> AuthorDate: Sun Jul 10 18:25:18 2022 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sun Jul 10 18:25:18 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=68159035 equery check.py: Fix flake 8 qa for unused variable flake8 did not correctly detect the way the variable is used. Add an assert to eliminate the false detection. Signed-off-by: Brian Dolbec gentoo.org> pym/gentoolkit/equery/check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/gentoolkit/equery/check.py b/pym/gentoolkit/equery/check.py index 7e580b1..2ef881c 100644 --- a/pym/gentoolkit/equery/check.py +++ b/pym/gentoolkit/equery/check.py @@ -144,6 +144,7 @@ class VerifyContents: obj_errs.append(err % locals()) return obj_errs except Exception as ex: + assert ex # to silence unused variable ex err = "Problem checking %(cfile)s: %(ex)s" obj_errs.append(err % locals()) return obj_errs