'Translates bytes into lines, and calls lineReceived.'

def dataReceived(self, data):

    lines = (self._buffer + data).split(self.delimiter)
    self._buffer = lines.pop((-1))
    for line in lines:
        if self.transport.disconnecting:
            return
        if (len(line) > self.MAX_LENGTH):
            return self.lineLengthExceeded(line)
        else:
            self.lineReceived(line)
    if (len(self._buffer) > self.MAX_LENGTH):
        return self.lineLengthExceeded(self._buffer)
