Class n.s.x.LineBasedStream(object):

Part of nevow.scripts.xmlgettext View Source View In Hierarchy

Allow pulldom to read at most one line at a time, to get accurate line number reporting. Otherwise it always reports everything is on the last line read in a single chunk.

Delay reporting newlines to next read, to avoid line numbers always being off by one.

Not the prettiest code I've written :-(
Line # Kind Name Docs
17 Method __init__ Undocumented
21 Method read Undocumented
def __init__(self, stream): (source)
Undocumented
def read(self, bufsize): (source)
Undocumented
API Documentation for Nevow, generated by pydoctor.