'Consume new data and yield any lines found.'

def parse_lines(self):

    while re.search(self.terminator, self.recv_buffer):
        (line, self.recv_buffer) = self.delimiter.split(self.recv_buffer, 1)
        (yield line)
