def do_ki(self, arg):
        if not arg:
            arg = self.conid
        arg = int(arg)
        c = self.monitor.connections[arg]
        if c.get_ps('noninterruptible'):
            print '''\
Error: Can not interrupt this remote connection (uses Python < 2.4)'''
        else:
            print 'Sending KeyboardInterrupt to connection %s.'%arg
            c.send_cmd(KEYBOARDINTERRUPT)
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/Monitor.py/MonitorConnection.do_ki/original