'Sends a line, unless line is None.
@param line: Line to send
@type line: L{bytes} or L{unicode}'

def sendLine(self, line):

    if (line is None):
        return
    elif isinstance(line, unicode):
        line = line.encode(self._encoding)
    basic.LineReceiver.sendLine(self, line)
