Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Python/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ ast_for_funcdef_impl(struct compiling *c, const node *n0,

if (is_async)
return AsyncFunctionDef(name, args, body, decorator_seq, returns,
LINENO(n), n0->n_col_offset, c->c_arena);
LINENO(n0), n0->n_col_offset, c->c_arena);
else
return FunctionDef(name, args, body, decorator_seq, returns,
LINENO(n), n->n_col_offset, c->c_arena);
Expand Down Expand Up @@ -3719,7 +3719,7 @@ ast_for_for_stmt(struct compiling *c, const node *n0, bool is_async)

if (is_async)
return AsyncFor(target, expression, suite_seq, seq,
LINENO(n), n0->n_col_offset,
LINENO(n0), n0->n_col_offset,
c->c_arena);
else
return For(target, expression, suite_seq, seq,
Expand Down Expand Up @@ -3895,7 +3895,7 @@ ast_for_with_stmt(struct compiling *c, const node *n0, bool is_async)
return NULL;

if (is_async)
return AsyncWith(items, body, LINENO(n), n0->n_col_offset, c->c_arena);
return AsyncWith(items, body, LINENO(n0), n0->n_col_offset, c->c_arena);
else
return With(items, body, LINENO(n), n->n_col_offset, c->c_arena);
}
Expand Down