def send_pack(self, message, binary=False):
        if binary:
            raise Exception('binary not supported for HtmlFileTransport')

        # TODO: Just do escaping
        msg = proto.json_encode(message) % '<script>\np(%s);\n</script>\r\n'

        self.active = False

        try:
            self.notify_sent(len(message))

            self.write(msg)
            self.flush(callback=self.send_complete)
        except IOError:
            # If connection dropped, make sure we close offending session instead
            # of propagating error all way up.
            self.session.delayed_close()
            self._detach()
dataset/ETHPy150Open benoitc/gaffer/gaffer/sockjs/transports/htmlfile.py/HtmlFileTransport.send_pack/swapped operands of `%`