commit | 0714b8b6ab5e13fad0d93128cfcf1955ce7d0514 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Feb 13 19:22:14 2014 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Feb 13 19:22:14 2014 -0500 |
tree | 9a15fe199260d5d41967723bb90c193b2fd0f0a2 | |
parent | 15054c16c8a562bd06fde2369012530fa2cda0a1 [diff] [blame] |
set line and column numbers for keyword-only arg nodes (closes #20619)
diff --git a/Python/ast.c b/Python/ast.c index 3bd24fd..5668755 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -1203,6 +1203,8 @@ arg = arg(argname, annotation, c->c_arena); if (!arg) goto error; + arg->lineno = LINENO(ch); + arg->col_offset = ch->n_col_offset; asdl_seq_SET(kwonlyargs, j++, arg); i += 2; /* the name and the comma */ break;