def _write():
    if (getattr(self.other, 'transport') is not None):
        self.other.dataReceived(self.buffer)
        self.buffer = b''
        return
    self._reactor.callLater(0.0, _write)
def _write():
    if (getattr(self.other, 'transport') is not None):
        self.other.dataReceived(self.buffer)
        self.buffer = b
        return
    self._reactor.callLater(0.0, _write)