def send_text(self, cmd):
        if self._send_text != self._dispatch_chrome_jupyter and \
                self._send_text != self._dispatch_safari_jupyter:

            cmd = cmd.rstrip("\n")
            if len(re.findall("\n", cmd)) > 0:
                cmd = "%cpaste -q\n" + cmd + "\n--"

        TextSender.send_text(self, cmd)
dataset/ETHPy150Open randy3k/SendTextPlus/textsender.py/PythonTextSender.send_text/original