class documentation
class BaseWriter: (source)
Known subclasses: pylint.reporters.ureports.text_writer.TextWriter
Base class for ureport writers.
Method | begin |
Begin to format a layout. |
Method | compute |
Trick to compute the formatting of children layout before actually writing it. |
Method | end |
Finished formatting a layout. |
Method | format |
Format and write the given layout into the stream object. |
Method | format |
Recurse on the layout children and call their accept method (see the Visitor pattern). |
Method | get |
Trick to get table content without actually writing it. |
Method | write |
Write a string in the output buffer. |
Method | writeln |
Write a line in the output buffer. |
Instance Variable | encoding |
Undocumented |
Instance Variable | out |
Undocumented |
Instance Variable | section |
Undocumented |
Trick to compute the formatting of children layout before actually writing it. return an iterator on strings (one for each child element)
def format(self, layout:
BaseLayout
, stream: TextIO
= sys.stdout, encoding: str|None
= None):
(source)
¶
Format and write the given layout into the stream object. unicode policy: unicode strings may be found in the layout; try to call 'stream.write' with it, but give it back encoded using the given encoding if it fails