Package portage :: Module output :: Class StyleWriter
[hide private]

Class StyleWriter

source code

formatter.NullWriter --+    
                       |    
    formatter.DumbWriter --+
                           |
                          StyleWriter

This is just a DumbWriter with a hook in the new_styles() method that passes a styles tuple as a single argument to a callable style_listener attribute.

Instance Methods [hide private]
 
__init__(self, **kwargs) source code
 
new_styles(self, styles) source code

Inherited from formatter.DumbWriter: reset, send_flowing_data, send_hor_rule, send_line_break, send_literal_data, send_paragraph

Inherited from formatter.NullWriter: flush, new_alignment, new_font, new_margin, new_spacing, send_label_data

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 
Overrides: formatter.NullWriter.__init__

new_styles(self, styles)

source code 
Overrides: formatter.NullWriter.new_styles