'Append some bytes to the output buffer.
@param data: C{str} to be appended to the output buffer.
@type data: C{str}.
@raise TypeError: If C{data} is C{unicode} instead of C{str}.'

def write(self, data):

    if isinstance(data, unicode):
        raise TypeError('Unicode    not    allowed    in    output    buffer.')
    if self.disconnecting:
        return
    self.outQueue.append(data)
    if (sum(map(len, self.outQueue)) > FULL_BUFFER_SIZE):
        self.bufferFull()
