(self, seq)
returns thread listing as XML
returns thread listing as XML
returns thread listing as XML
def make_list_threads_message(self, seq):
        """ returns thread listing as XML """
        try:
            threads = threading.enumerate()
            cmd_text = ["<xml>"]
            append = cmd_text.append
            for thread in threads:
                if is_thread_alive(thread) and not getattr(thread, 'is_pydev_daemon_thread', False):
                    append(self._thread_to_xml(thread))
            append("</xml>")
            return NetCommand(CMD_RETURN, seq, ''.join(cmd_text))
        except:
            return self.make_error_message(seq, get_exception_traceback_str())
def make_list_threads_message ( self , seq ) : try : threads = threading . enumerate ( ) cmd_text = [ "<xml>" ] append = cmd_text . append for thread in threads : if is_thread_alive ( thread ) and not getattr ( thread , 'is_pydev_daemon_thread' , False ) : append ( self . _thread_to_xml ( thread ) ) append ( "</xml>" ) return NetCommand ( CMD_RETURN , seq , '' . join ( cmd_text ) ) except : return self . make_error_message ( seq , get_exception_traceback_str ( ) )