portage.util.formatter module

class portage.util.formatter.AbstractFormatter(writer)

Bases: object

The standard formatter.

add_line_break()
add_literal_data(data)
pop_style(n=1)
push_style(*styles)
class portage.util.formatter.DumbWriter(file=None, maxcol=None)

Bases: portage.util.formatter.NullWriter

Simple writer class which writes output on the file object passed in as the file parameter or, if file is omitted, on standard output.

flush()
new_styles(styles)
send_line_break()
send_literal_data(data)
class portage.util.formatter.NullWriter

Bases: object

Minimal writer interface to use in testing & inheritance.

A writer which only provides the interface definition; no actions are taken on any methods. This should be the base class for all writers which do not need to inherit any implementation methods.

flush()
new_styles(styles)
send_line_break()
send_literal_data(data)