def wrap(self, stream):
        try:
            while True:
                ch = stream.next()
                self.line.append(ch)
                if ch == '\n':
                    for tok in self.emit_line():
                        yield tok
        except __HOLE__:
            for tok in self.emit_line():
                yield tok
dataset/ETHPy150Open brehaut/picoparse/picoparse/text.py/TextDiagnostics.wrap