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

Class StyleWriter

source code

               object --+        
                        |        
util.formatter.NullWriter --+    
                            |    
    util.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)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
new_styles(self, styles) source code

Inherited from util.formatter.DumbWriter: flush, send_line_break, send_literal_data

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

new_styles(self, styles)

source code 
Overrides: util.formatter.NullWriter.new_styles