def __bytes__(self):
        """
        Return a byte string representation of the channel
        """
        name = self.name
        if not name:
            name = b'None'

        return (b'<SSHChannel ' + name +
                b' (lw ' + intToBytes(self.localWindowLeft) +
                b' rw ' + intToBytes(self.remoteWindowLeft) +
                b')>')

        Return a byte string representation of the channel
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/ssh/channel.py