From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1608349-garchives=archives.gentoo.org@lists.gentoo.org> 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 0A36F158041 for <garchives@archives.gentoo.org>; Thu, 7 Mar 2024 18:49:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11B44E29BC; Thu, 7 Mar 2024 18:49:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 37253E29BC for <gentoo-commits@lists.gentoo.org>; Thu, 7 Mar 2024 18:49:19 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 64529343012 for <gentoo-commits@lists.gentoo.org>; Thu, 7 Mar 2024 18:49:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E9F5914EE for <gentoo-commits@lists.gentoo.org>; Thu, 7 Mar 2024 18:49:16 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1709837347.b9294a02b804f0286f22625d563a1f92a1bb24b3.sam@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: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b9294a02b804f0286f22625d563a1f92a1bb24b3 X-VCS-Branch: master Date: Thu, 7 Mar 2024 18:49:16 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a6df1c9b-0094-4c32-8697-78b6ef67eb8f X-Archives-Hash: 7213aee4a1cc21a84d4f04566caa1f60 commit: b9294a02b804f0286f22625d563a1f92a1bb24b3 Author: John Turner <jturner.usa <AT> gmail <DOT> com> AuthorDate: Tue Feb 27 20:20:11 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 7 18:49:07 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=b9294a02 depends.py: rename DependPrinter to Printer The DependPrinter class name and documentation indicated that it was meant to be part of the gentoolkit.dependencies API, to print Dependencies objects. This Printer class is used exclusively for printering equery depends output and is not a public API outside of the depends.py module Signed-off-by: John Turner <jturner.usa <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> pym/gentoolkit/equery/depends.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pym/gentoolkit/equery/depends.py b/pym/gentoolkit/equery/depends.py index f92b7b9..39e0b25 100644 --- a/pym/gentoolkit/equery/depends.py +++ b/pym/gentoolkit/equery/depends.py @@ -35,8 +35,8 @@ QUERY_OPTS = { # ======= -class DependPrinter: - """Output L{gentoolkit.dependencies.Dependencies} objects.""" +class Printer: + """Output L{gentoolkit.dependencies.Dependencies} objects for equery depends.""" def __init__(self, verbose=True): self.verbose = verbose @@ -83,7 +83,7 @@ class DependPrinter: ) def format_depend(self, dep, dep_is_displayed): - """Format a dependency for printing. + """Format a dependency for printing for equery depends. @type dep: L{gentoolkit.dependencies.Dependencies} @param dep: the dependency to display @@ -209,7 +209,7 @@ def main(input_args): # Output # - dep_print = DependPrinter(verbose=CONFIG["verbose"]) + printer = Printer(verbose=CONFIG["verbose"]) first_run = True got_match = False