def format_list(extracted_list):
    list = []
    for filename, lineno, name, line in extracted_list:
        item = '  File "%s", line %d, in %s\n' % (filename,lineno,name)
        if line:
            item = item + '    %s\n' % line.strip()
        list.append(item)
    return list
Testing a simple write
dataset/ETHPy150Open babble/babble/include/jython/Lib/traceback.py/format_list--crossover with--dataset/ETHPy150Open openshift/openshift-ansible/test/units/yedit_test.py/YeditTest.test_write