Skip to content

Commit 4c94439

Browse files
committed
Add attributes to SyntaxError
add 'end_lineno' and 'end_offset'
1 parent 48cf792 commit 4c94439

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vm/src/exceptions.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,9 @@ impl ExceptionZoo {
796796
// TODO: members
797797
"filename" => ctx.none(),
798798
"lineno" => ctx.none(),
799+
"end_lineno" => ctx.none(),
799800
"offset" => ctx.none(),
801+
"end_offset" => ctx.none(),
800802
"text" => ctx.none(),
801803
});
802804
extend_exception!(PyIndentationError, ctx, excs.indentation_error);

0 commit comments

Comments
 (0)