fn write_traceback_entry<W: Write>(output: &mut W, tb_entry: &PyTracebackRef) -> io::Result<()> {
    let filename = tb_entry.frame.code.source_path.to_owned();
    writeln!(
        output,
        r##"  File "{}", line {}, in {}"##,
        filename, tb_entry.lineno, tb_entry.frame.code.obj_name
    )?;
    print_source_line(output, &filename, tb_entry.lineno)?;

    Ok(())
}
/// Print exception occurrence location from traceback element
Print exception occurrence location from traceback element
Print exception occurrence location from traceback element
fn write_traceback_entry<W: Write>(output: &mut W, tb_entry: &PyTracebackRef) -> io::Result<()> {
    let filename = tb_entry.frame.code.source_path.to_owned();
    writeln!(
        output,
        r##"  File "{}", line {}, in {}"##,
        filename, tb_entry.lineno, tb_entry.frame.code.obj_name
    )?;
    print_source_line(output, &filename, tb_entry.lineno)?;
    Ok(())
}
fn write_traceback_entry < W : Write > ( output : & mut W , tb_entry : & PyTracebackRef ) -> io :: Result < ( ) > { let filename = tb_entry . frame . code . source_path . to_owned ( ) ; writeln ! ( output r##"  File "{}", line {}, in {}"## filename tb_entry lineno tb_entry frame code obj_name ) ? ; print_source_line ( output , & filename , tb_entry . lineno ) ? ; Ok ( ( ) ) }
Print exception occurrence location from traceback element
Print exception occurrence location from traceback element
output
&mut W
tb_entry
&PyTracebackRef
output
&mut W
tb_entry
&PyTracebackRef