diff options
author | 2024-02-27 15:20:11 -0500 | |
---|---|---|
committer | 2024-03-07 18:49:07 +0000 | |
commit | b9294a02b804f0286f22625d563a1f92a1bb24b3 (patch) | |
tree | 4ed9bf22ca05f6250fa74e14462beb7da07b68e3 | |
parent | equery/depends: print output in module rather than with a callback (diff) | |
download | gentoolkit-b9294a02b804f0286f22625d563a1f92a1bb24b3.tar.gz gentoolkit-b9294a02b804f0286f22625d563a1f92a1bb24b3.tar.bz2 gentoolkit-b9294a02b804f0286f22625d563a1f92a1bb24b3.zip |
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@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | pym/gentoolkit/equery/depends.py | 8 |
1 files 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 |