@@ -154,7 +154,7 @@ impl VirtualMachine {
154154 || previous_name != tb. frame . code . obj_name . as_str ( )
155155 {
156156 if repeat_counter > TRACEBACK_RECURSIVE_CUTOFF {
157- write_repeat_traceback_entry ( output, & tb , repeat_counter) ?;
157+ write_repeat_traceback_entry ( output, repeat_counter) ?;
158158 }
159159 previous_file = tb. frame . code . source_path . as_str ( ) . to_string ( ) ;
160160 previous_line = tb. lineno . get ( ) ;
@@ -167,7 +167,7 @@ impl VirtualMachine {
167167 }
168168 }
169169 if repeat_counter > TRACEBACK_RECURSIVE_CUTOFF {
170- write_repeat_traceback_entry ( output, & tb_list [ 0 ] , repeat_counter) ?;
170+ write_repeat_traceback_entry ( output, repeat_counter) ?;
171171 }
172172 }
173173
@@ -407,7 +407,7 @@ fn write_traceback_entry<W: Write>(
407407 writeln ! (
408408 output,
409409 r##" File "{}", line {}, in {}"## ,
410- filename. trim_start_matches ( r"\\?\" ) ,
410+ filename,
411411 tb_entry. lineno,
412412 tb_entry. frame. code. obj_name
413413 ) ?;
@@ -418,7 +418,6 @@ fn write_traceback_entry<W: Write>(
418418
419419fn write_repeat_traceback_entry < W : Write > (
420420 output : & mut W ,
421- tb_entry : & PyTracebackRef ,
422421 repeat_counter : usize ,
423422) -> Result < ( ) , W :: Error > {
424423 let count = repeat_counter - TRACEBACK_RECURSIVE_CUTOFF ;
0 commit comments