From bc25bf838cb09817c19a3264d2591865c53f96fe Mon Sep 17 00:00:00 2001 From: John Turner Date: Tue, 27 Feb 2024 15:20:11 -0500 Subject: [PATCH] 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 --- 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 f92b7b97..39e0b255 100644 --- a/pym/gentoolkit/equery/depends.py +++ b/pym/gentoolkit/equery/depends.py @@ -35,8 +35,8 @@ # ======= -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 @@ def print_formated(pkg): ) 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