diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-02-14 00:22:14 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-02-14 00:22:14 (GMT) |
commit | 0714b8b6ab5e13fad0d93128cfcf1955ce7d0514 (patch) | |
tree | 9a15fe199260d5d41967723bb90c193b2fd0f0a2 /Python/ast.c | |
parent | 15054c16c8a562bd06fde2369012530fa2cda0a1 (diff) | |
download | cpython-0714b8b6ab5e13fad0d93128cfcf1955ce7d0514.zip cpython-0714b8b6ab5e13fad0d93128cfcf1955ce7d0514.tar.gz cpython-0714b8b6ab5e13fad0d93128cfcf1955ce7d0514.tar.bz2 |
set line and column numbers for keyword-only arg nodes (closes #20619)
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ handle_keywordonly_args(struct compiling *c, const node *n, int start, 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; |