GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix compile · RustPython/RustPython@fbce90b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • vm/src
    • exceptions.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎vm/src/exceptions.rs‎

Copy file name to clipboardExpand all lines: vm/src/exceptions.rs
+3-4Lines 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 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.