def kill_cursor(self, cursor):
        """ Kills the text selected by the give cursor.
        """
        text = cursor.selectedText()
        if text:
            cursor.removeSelectedText()
            self.kill(text)
 Kills the text selected by the give cursor.
        
angrmanagement/vendor/qtconsole/kill_ring.py