trepan/lib/stack.py
def print_stack_trace(proc_obj, count=None, color='plain', opts={}):
    "Print count entries of the stack trace"
    if count is None:
        n=len(proc_obj.stack)
    else:
        n=min(len(proc_obj.stack), count)
    try:
        for i in range(n):
            print_stack_entry(proc_obj, i, color=color, opts=opts)
    except KeyboardInterrupt:
        pass
    return
def print_stack_trace(proc_obj, count=None, color='plain', opts={}):
    "Print count entries of the stack trace"
    if count is None:
        n=len(proc_obj.stack)
    else:
        n=min(len(proc_obj.stack), count)
    try:
        for i in range(n):
            print_stack_entry(proc_obj, i, color=color, opts=opts)
    except KeyboardInterrupt:
        pass
    return
def print_stack_trace ( proc_obj , count = None , color = 'plain' , opts = { } ) : if count is None : n = len ( proc_obj . stack ) else : n = min ( len ( proc_obj . stack ) , count ) try : for i in range ( n ) : print_stack_entry ( proc_obj , i , color = color , opts = opts ) except KeyboardInterrupt : pass return
Print count entries of the stack trace
Print count entries of the stack trace