def send(self, lines):
        if isinstance(lines, basestring):
            lines = [lines]
        out = NEWLINE.join(lines) + NEWLINE
        log.debug('{}', out[:-1])  # Don't log trailing newline.
        if isinstance(out, unicode):
            out = out.encode('utf8')
        return self.sock.sendall(out)
Send lines, which which is either a single string or an
dataset/ETHPy150Open beetbox/beets/beetsplug/bpd/__init__.py/Connection.send