b.b.b.LineConsumer(object) : class documentation

Part of bzrlib.benchmarks.bench_log View In Hierarchy

Count lines that are produced.

When the required number of lines have been reached, raise LinesDone.

Method __init__ Create a new consumer.
Method write Write some text to the black hole.
def __init__(self, required_lines):
Create a new consumer.
Parametersrequired_linesHow many lines must be produced. (type: integer)
def write(self, text):
Write some text to the black hole.

But count how many lines have been written.

ParameterstextA string that would be written.
ReturnsNone
RaisesLinesDonewhen the required number of lines has been reached.
API Documentation for Bazaar, generated by pydoctor at 2010-08-03 00:12:18.