'Called by Twisted when the cftp client prints data to stdout.'

def outReceived(self, data):

    log.msg(('got    %r' % data))
    lines = (self._lineBuffer + data).split('\n')
    self._lineBuffer = lines.pop((-1))
    self._linesReceived.extend(lines)
    if (self.onOutReceived is not None):
        (d, self.onOutReceived) = (self.onOutReceived, None)
        d.callback(data)
    self.buffer += data
    self._checkForCommand()
