def format_list(extracted_list):
    """
    Format a list of traceback entry tuples.
    """
    list = []
    for _, filename, lineno, func_name, line, _ in extracted_list:
        code = ''.join(line).strip()
        item = 'File "%s", line %d, in %s\n  %s\n' % (filename, lineno,
            func_name, code)
        list.append(item)
    return list
