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 5B070158094 for ; Sun, 10 Jul 2022 16:23:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EDF5E0D55; Sun, 10 Jul 2022 16:23:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 5E1AFE0D55 for ; Sun, 10 Jul 2022 16:23:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6AB10335D88 for ; Sun, 10 Jul 2022 16:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E558F4EC for ; Sun, 10 Jul 2022 16:23:14 +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: <1657469800.9b9711bf1b1111d0bdc24e4be6fc226758738d7a.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/equery/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/equery/depends.py X-VCS-Directories: pym/gentoolkit/equery/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 9b9711bf1b1111d0bdc24e4be6fc226758738d7a X-VCS-Branch: master Date: Sun, 10 Jul 2022 16:23:14 +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: e4d4b9da-2149-4bed-aea5-5a162c843e79 X-Archives-Hash: 35e57ead016d424f5d76deac7b787358 commit: 9b9711bf1b1111d0bdc24e4be6fc226758738d7a Author: Brian Dolbec gentoo org> AuthorDate: Sun Jul 10 16:16:40 2022 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sun Jul 10 16:16:40 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=9b9711bf equery depends: Fix a traceback due to UnboundLocalError: File "/home/brian/Dev/git/gentoolkit/pym/gentoolkit/equery/depends.py" , line 106, in format_depend self.print_fn(indent, str(dep.cpv), use_conditional, formatted_dep) UnboundLocalError: local variable 'formatted_dep' referenced before assignment The statement appears to be added as preliminary debug info. Removed it. Signed-off-by: Brian Dolbec gentoo.org> pym/gentoolkit/equery/depends.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pym/gentoolkit/equery/depends.py b/pym/gentoolkit/equery/depends.py index f65e846..fe56148 100644 --- a/pym/gentoolkit/equery/depends.py +++ b/pym/gentoolkit/equery/depends.py @@ -103,7 +103,6 @@ class DependPrinter: pkg = Package(str(dep.cpv)) self.print_formated(pkg) else: - self.print_fn(indent, str(dep.cpv), use_conditional, formatted_dep) if mdep.use_conditional: use_conditional = " & ".join( pp.useflag(u) for u in mdep.use_conditional.split()