Skip to content

Commit

Permalink
depends.py: rename DependPrinter to Printer
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
Jturnerusa authored and thesamesam committed Mar 7, 2024
1 parent b2dbcb1 commit b9294a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pym/gentoolkit/equery/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b9294a0

Please sign in to comment.