Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5033e31 commit 181835dCopy full SHA for 181835d
1 file changed
Python/ast.c
@@ -3871,11 +3871,8 @@ static void
3871
get_last_end_pos(asdl_seq *s, int *end_lineno, int *end_col_offset)
3872
{
3873
int tot = asdl_seq_LEN(s);
3874
- // Suite should not be empty, but it is safe to just ignore it
3875
- // if it will ever occur.
3876
- if (!tot) {
3877
- return;
3878
- }
+ // There must be no empty suites.
+ assert(tot > 0);
3879
stmt_ty last = asdl_seq_GET(s, tot - 1);
3880
*end_lineno = last->end_lineno;
3881
*end_col_offset = last->end_col_offset;
0 commit comments