def extend(self, data):
        """
        Add more ``data`` to the message.
        """
        if isinstance(data, bytes):
            self.data += data
        elif isinstance(data, bytearray):
            self.data += bytes(data)
        elif isinstance(data, unicode):
            self.data += data.encode(self.encoding)
        else:
            raise TypeError(type(data) % "%s is not a supported data type")
dataset/ETHPy150Open Lawouach/WebSocket-for-Python/ws4py/messaging.py/Message.extend/swapped operands of `%`