def format_stack(f=None, limit=None):
if f is None:<EOL><INDENT>try:<EOL><INDENT>raise ZeroDivisionError<EOL><DEDENT>except ZeroDivisionError:<EOL><INDENT>f = sys.exc_info()[<NUM_LIT:2>].tb_frame.f_back<EOL><DEDENT><DEDENT>return format_list(extract_stack(f, limit))<EOL>
Shorthand for 'format_list(extract_stack(f, limit))'.