Skip to content

Commit fbce90b

Browse files
committed
fix compile
1 parent e31eda0 commit fbce90b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vm/src/exceptions.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

419419
fn 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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy