parameters: (thread_id)
return_statement: return out.getvalue()
docstring: Returns a plain-text traceback of the given thread, or None if it
      can't get a traceback.
docstring_summary: Returns a plain-text traceback of the given thread, or None if it
      can't get a traceback.
docstring_tokens: Returns a plain - text traceback of the given thread or None if it can t get a traceback .
function: def traceback_thread(thread_id):
      """
      Returns a plain-text traceback of the given thread, or None if it
      can't get a traceback.
      """
      if not hasattr(sys, '_current_frames'):
          # Only 2.5 has support for this, with this special function
          return None
      frames = sys._current_frames()
      if not thread_id in frames:
          return None
      frame = frames[thread_id]
      out = StringIO()
      traceback.print_stack(frame, file=out)
      return out.getvalue()
function_tokens: def traceback_thread ( thread_id ) : if not hasattr ( sys , '_current_frames' ) : # Only 2.5 has support for this, with this special function return None frames = sys . _current_frames ( ) if not thread_id in frames : return None frame = frames [ thread_id ] out = StringIO ( ) traceback . print_stack ( frame , file = out ) return out . getvalue ( )