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

Class ConsoleStyleFile

source code

object --+
         |
        ConsoleStyleFile

A file-like object that behaves something like the colorize() function. Style identifiers passed in via the new_styles() method will be used to apply console codes to output.

Instance Methods [hide private]
 
__init__(self, f)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
new_styles(self, styles) source code
 
write(self, s) source code
 
_write(self, f, s) source code
 
writelines(self, lines) source code
 
flush(self) source code
 
close(self) source code

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, f)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)